home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / FAQs / SGIfaqs / SGI-Admin-faq < prev    next >
Internet Message Format  |  1994-08-01  |  91KB

  1. Xref: odin comp.sys.sgi.misc:9154 comp.answers:4798 news.answers:20655
  2. From: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  3. Newsgroups: comp.sys.sgi.misc,comp.answers,news.answers
  4. Subject: SGI admin Frequently Asked Questions (FAQ)
  5. Supersedes: <admin_764182743@viz.tamu.edu>
  6. Followup-To: comp.sys.sgi.misc
  7. Date: 6 Apr 1994 20:11:18 GMT
  8. Organization: Visualization Lab, Texas A&M University
  9. Lines: 1120
  10. Expires: 4 May 1994 20:11:14 GMT
  11. Reply-To: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  12. NNTP-Posting-Host: viz.tamu.edu
  13. Originator: sgi-faq@viz
  14.  
  15. Archive-name: sgi/faq/admin
  16. Last-modified: Wed Apr  6 15:10:30 CDT 1994
  17.  
  18.     SGI admin Frequently Asked Questions (FAQ)
  19.  
  20. This is one of the Silicon Graphics FAQ series, which consists of:
  21.  
  22.     SGI admin FAQ - IRIX system administration
  23.     SGI apps FAQ - Applications & compilers
  24.     SGI graphics FAQ - Graphics and user environment customization
  25.     SGI hardware FAQ - Hardware
  26.     SGI misc FAQ - Introduction & miscellaneous information
  27.     SGI performer FAQ - IRIS Performer
  28.     SGI pointer FAQ - Pointer to the other FAQs
  29.  
  30. Read the misc FAQ for information about the FAQs themselves.  Each FAQ
  31. is posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  32. newsgroups (whose purpose is to store FAQs) twice per month.  If you
  33. can't find one of the FAQs with your news program, you can get it by
  34. anonymous FTP from one of these sites:
  35.  
  36.     rtfm.mit.edu:/pub/usenet/comp.sys.sgi.misc/
  37.     rtfm.mit.edu:/pub/usenet/news.answers/sgi/faq/
  38.     rtfm.mit.edu:/pub/usenet/comp.answers/sgi/faq/
  39.     viz.tamu.edu:/pub/sgi/faq/
  40.  
  41. Note that rtfm.mit.edu is home to many other FAQs and informational
  42. documents, and is a good place to look if you can't find an answer
  43. here. If you can't use FTP, send mail to mail-server@rtfm.mit.edu with
  44. the command 'send usenet/news.answers/ftp-list/faq' on a line by itself
  45. in the text, and it will send you a document describing how to FTP by
  46. mail. You can also read a hypertext version of the FAQs at
  47.  
  48.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/sgi/top.html
  49.  
  50. The SGI FAQs are freely distributable and wide circulation is encouraged.
  51. The contents are accurate as far as we know, but the usual disclaimers
  52. apply. Please send additions and changes to sgi-faq@viz.tamu.edu.
  53.  
  54. Topics covered in this FAQ:
  55. ---------------------------
  56.    -1- How can I determine which release of IRIX I'm running?
  57.    -2- How can I determine my SGI's Ethernet (and/or FDDI) address?
  58.    -3- How can I administer my Iris without a graphics terminal?
  59.    -4- Is it possible to use the visual admin tools on a system with
  60.        graphics to administer a system without graphics?
  61.    -5- How can I boot directly into single-user mode?
  62.    -6- How can I boot from a non-default disk?
  63.    -7- How can I boot my machine using a server on the other side of a
  64.        router?
  65.    -8- Is it possible to remotely install IRIX over a network?
  66.    -9- Which IRIX CD is the program 'foo' on?
  67.   -10- Why doesn't 'inst' work?
  68.   -11- How can I install IRIX onto a second disk which I can then move
  69.        to another machine?
  70.   -12- How can I copy my system disk onto a second disk which I can then
  71.        move to another machine?
  72.   -13- I think I've found a security hole in IRIX; whom do I notify at
  73.        SGI?
  74. ! -14- What security problems does IRIX have?
  75.   -15- How can I log more information about logins?
  76.   -16- I've just edited inetd.conf, and nothing changed. Why?
  77.   -17- How do I make an anonymous or restricted FTP account?
  78.   -18- How do I set the number of processes allowed on my machine?
  79.   -19- I want to install a termcap for 'iris-ansi-net' on my non-SGI
  80.        system, but I can't find a termcap file on the SGI.  Where can I
  81.        get one?
  82.   -20- My SGI crashed and generated a file, /usr/adm/crash/vmcore.1. How
  83.        can I examine this file to see what crashed my system?
  84.   -21- How can I tell what hostname to use in /etc/exports?
  85.   -22- Why can't I export an NFS-mounted filesystem?
  86.   -23- Why can't Ultrix automount SGI filesystems?
  87. + -24- Why does 'tar' work strangely on a filesystem mounted from an
  88.        SGI?
  89.   -25- Is 'pcnfsd' available for the SGI?
  90.   -26- Can I export a CD-ROM from my SGI to a non-SGI?
  91.   -27- Why can't I export an ISO 9660 CD-ROM using NFS?
  92.   -28- How can I read an IRIX (EFS) CD-ROM on a machine which doesn't
  93.        use EFS?
  94.   -29- Why is my network license daemon ('netlsd') exiting?
  95.   -30- Why isn't /usr/adm/SYSLOG being updated?
  96.   -31- Why is 'rusers' showing users who aren't really logged in?
  97.   -32- How do I make a bootable tape from an IRIX 4.0.X CD?
  98. ! -33- Why can't I boot one of the stand-alone programs on a tape or CD?
  99.   -34- Why is /debug or /proc full of huge files?
  100.   -35- Why do some programs parse /etc/fstab incorrectly?
  101.   -36- My Indigo's Ethernet performance is dog-slow. What gives?
  102.   -37- My Indigo running 4.0.5IOP is getting SIGSEGVs and crashing. What
  103.        gives?
  104.   -38- Why is my Indigo2 panicking?
  105.   -39- What's this 'iotim' error in my syslog?
  106.   -40- Why can't 'lp' read my file?
  107.   -41- How can I use 'lpr' to print to my local printer?
  108.   -42- How can I use 'lp' to print to an 'lpr'-controlled printer?
  109.   -43- How can I tell 'lp' to turn banner printing or page reversal off
  110.        or on?
  111.   -44- Why can't I 'rdist' files between Suns and SGIs?
  112.   -45- How do I add a static route?
  113.   -46- How can I make the 'slip' command advertise the Ethernet address
  114.        of the SLIP client?
  115.   -47- How can I set up 'sendmail' to pass 8-bit characters?
  116.   -48- Why are my mailbox files changing ownership?
  117.   -49- Why isn't a valid user getting their mail?
  118.   -50- How can SGIs and Suns share a mail spool?
  119.   -51- What's an "unknown mailer error"?
  120.   -52- What's "mailbox: Error 0"?
  121.   -53- Can I change my full name or login shell without being superuser?
  122.   -54- How do I extend an existing filesystem onto a new disk?
  123.   -55- How can I measure my network's reliability?
  124.   -56- How do I know if I need more memory and/or swap space?
  125.   -57- How much swap space should I have per megabyte of memory?
  126.   -58- How can I increase my swap space?
  127.  
  128. ----------------------------------------------------------------------
  129.  
  130. Subject:    -1- How can I determine which release of IRIX I'm running?
  131. Date: 07 Feb 94 00:00:01 CST
  132.  
  133. 'uname -a' gives you all the kernel info; see the uname(1) manpage for
  134. other options.
  135.  
  136. Of more general use, since kernels don't always reflect installed
  137. software, is the 'versions' command.  'versions' with no arguments
  138. lists all the installed software subsystems.
  139.  
  140. IRIX 5.2's System Manager ('chost') has the IRIX version number under
  141. "IRIX Version" and a listing of installed software under "Software"
  142. (the "Show Installed" button).
  143.  
  144. ------------------------------
  145.  
  146. Subject:    -2- How can I determine my SGI's Ethernet (and/or FDDI)
  147.                 address?
  148. Date: 07 Feb 94 00:00:01 CST
  149.  
  150. Many thanks to Miguel Sanchez <miguel@oasis.csd.sgi.com> for providing
  151. the original version of the following discussion, and to Dave Olson
  152. <olson@sgi.com> for comments. Andrew Cherenson
  153. <arc@sgi.com> reminded us that all these methods except
  154. the first apply to FDDI as well, but we'll just say "Ethernet" below.
  155.  
  156. Every system on an Ethernet network must have a unique Ethernet address
  157. for the network to operate properly. The physical Ethernet address of
  158. your system is the unique number assigned to the Ethernet hardware on
  159. your system. This unique number is assigned to the manufacturer of your
  160. Ethernet hardware by the IEEE (formerly by Xerox, one of the original
  161. developers of Ethernet). This is not to be confused with the IP
  162. address, which can be set arbitrarily.
  163.  
  164. You may need to determine your system's Ethernet address if your
  165. network manager requires it before connecting your system to a
  166. network.  How to do so depends on whether IRIX is running and what
  167. operating system version is loaded.  Method 1 only provides the
  168. Ethernet address of the primary interface.  If you have multiple
  169. Ethernet interfaces (boards) in a system, use method 2, 3, 4 or 5 to
  170. determine the address(es) of any other interface(s).
  171.  
  172. METHOD 1: eaddr
  173.  
  174.     If IRIX is not running, and the system is a Personal IRIS (4D20,
  175.     25, 30, or 35), Indigo, Crimson, Onyx or Challenge, you can obtain
  176.     the Ethernet address by typing 'eaddr' (older machines) or
  177.     'printenv eaddr' (newer) at the PROM monitor prompt.  On some
  178.     machines (4D30 or later) you can say 'nvram eaddr' while IRIX is
  179.     running to get the same result.
  180.  
  181. METHOD 2: netstat
  182.  
  183.     Under IRIX 4.0.1 or later, you can use the netstat command. For
  184.     example,
  185.  
  186.     % /usr/etc/netstat -ia
  187.     Name  Mtu    Network   Address            Ipkts   Ierrs   Opkts  Oerrs  Coll
  188.     ec0   1500   siligrph  luey7              7765678 21648  384477     0  30338
  189.                 192.48.200.251
  190.                 192.0.0.1
  191.                 08:00:69:06:17:c2
  192.     lo0   32880  loopback localhost           41438       0   41438     0      0
  193.                 192.0.0.1
  194.  
  195.     As seen on the fourth address line, the address of the system
  196.     luey7's primary Ethernet interface, "ec0", is 08:00:69:06:17:c2.
  197.  
  198. METHOD 3: arp
  199.  
  200.     You can obtain the Ethernet address of a Silicon Graphics system by
  201.     using another system on your network. 'ping' the system whose
  202.     Ethernet address you want, then use 'arp'. For example,
  203.  
  204.     % /usr/etc/ping -c 1 luey6
  205.     PING luey6.sgi.com (192.48.200.250): 56 data bytes
  206.     64 bytes from 192.48.200.250: icmp_seq=0 ttl=255 time=0 ms
  207.     ----luey6.sgi.com PING Statistics----
  208.     3 packets transmitted, 3 packets received, 0% packet loss
  209.     round-trip (ms)  min/avg/max = 0/0/0
  210.     % /usr/etc/arp luey6
  211.     luey6 (192.48.200.250) at 8:0:69:6:c:40
  212.     %
  213.  
  214. METHOD 4: NetVizualyzer/FDDIVizualyzer and the like
  215.  
  216.     SGI's NetVizualyzer/FDDIVizualyzer network monitoring software and
  217.     at least one public domain equivalent ('netman', at
  218.     ftp.cs.curtin.edu.au:/pub/netman/) allow you to find the Ethernet
  219.     address corresponding to any IP address. Read the manual.
  220.  
  221. METHOD 5: System Manager
  222.  
  223.     The Network Setup part ('cnet') of IRIX 5.2's System Manager tool
  224.     ('chost') shows the Ethernet address of each interface.
  225.  
  226. 4DDN: A Special Case
  227.  
  228.     DECnet uses a one-to-one relationship between the DECnet node ID
  229.     and the Ethernet address. If the DECnet address is changed the
  230.     Ethernet address is changed. DECnet Ethernet addresses always start
  231.     with aa:, so you can identify systems running DECnet with 'arp -a'.
  232.  
  233.     4DDN is Silicon Graphics' DECnet interconnection product. The
  234.     Ethernet address of an IRIS running 4DDN will change when 4DDN is
  235.     started.  Method 1 will return the original Ethernet address for
  236.     the system.  Methods 2-5 will show the Ethernet address currently
  237.     in use.
  238.  
  239. sysinfo
  240.  
  241.     /etc/sysinfo is intended to return a unique identifier, which on
  242.     some machines includes part or all of the Ethernet address. This is
  243.     best regarded as an amusing coincidence, like HAL's name in "2001".
  244.     Don't rely on it.
  245.  
  246. ------------------------------
  247.  
  248. Subject:    -3- How can I administer my Iris without a graphics
  249.                 terminal?
  250. Date: 12 Feb 94 00:00:01 EST
  251.  
  252. SGI's visual admin tools ('vadmin' in IRIX 4.0.x and 'chost' in IRIX
  253. 5.x) need GL. They do not work on X terminals or workstations without
  254. GL, and will not in the near future. Under IRIX 4.0.x you can use
  255. 'sysadm' on text terminals for some tasks, but beware of bugs and
  256. inadequacies: SGI judged 'sysadm' to be too buggy to be worth updating
  257. for IRIX 5.x.
  258.  
  259. Of course, you can always use a text editor and write scripts, or see
  260. the next question.
  261.  
  262. ------------------------------
  263.  
  264. Subject:    -4- Is it possible to use the visual admin tools on a system
  265.                 with graphics to administer a system without graphics?
  266. Date: 12 Feb 94 00:00:01 CST
  267.  
  268. Yes: just rlogin to the graphics-less system and run 'vadmin' (IRIX
  269. 4.0.x) or 'chost' (IRIX 5.x).  Make sure that the DISPLAY environment
  270. variable is set correctly and that both the vadmin/sysadmdesktop and
  271. the shared library subsystems are installed on the graphics-less system
  272. (which they are in the default installation).
  273.  
  274. Under IRIX 5.x, look at the READMEs in /var/sysadmdesktop/rsysmanapps
  275. and /var/sysadmdesktop/sysmanapps to find out how to use 'chost' to run
  276. commands on remote systems. Finally, in a future release of IRIX 5.x,
  277. the sysadmdesktop tools will be able to manage remote systems *without*
  278. doing an rlogin.
  279.  
  280. ------------------------------
  281.  
  282. Subject:    -5- How can I boot directly into single-user mode?
  283. Date: 20 Feb 94 00:00:01 EST
  284.  
  285. Use the PROM monitor's 'single' command.
  286.  
  287. For machines earlier than 4D35s, whose PROMs don't have that command,
  288. say 'boot dksc(0,1,0)unix initstate=s'. Replace 'dksc(0,1,0)' with the
  289. appropriate device and partition if your boot volume is something other
  290. than a SCSI device partitioned in the standard manner; see the chapter
  291. on the PROM monitor in the "Advanced Site and Server Administration
  292. Guide".
  293.  
  294. ------------------------------
  295.  
  296. Subject:    -6- How can I boot from a non-default disk?
  297. Date: 20 Jan 94 00:00:01 CST
  298.  
  299. Says Justin Mason <jmason@iona.ie>: If your disk is SCSI ID 4, do
  300.  
  301.   boot -f dksc(0,4,8)sash dksc(0,4,0)unix root=dks0d4s0
  302.  
  303. or
  304.  
  305.   setenv bootfile dksc(0,4,8)sash
  306.   setenv path dksc(0,4,8)
  307.   setenv root dks0d4s0            # This is the tricky part 
  308.   auto
  309.  
  310. from the PROM. The first method works once, so that subsequent reboots
  311. use SCSI ID 1, and the second method sets the PROM to boot from ID 4
  312. every time (until you reset the PROM variables).
  313.  
  314. ------------------------------
  315.  
  316. Subject:    -7- How can I boot my machine using a server on the other
  317.                 side of a router?
  318. Date: 24 Jan 94 00:00:01 EST
  319.  
  320. Tell the router to forward BOOTP packets. If it can't, NFS-mount the
  321. remote volumes on another machine on the same subnet and use the nearby
  322. machine for your boot server.
  323.  
  324. ------------------------------
  325.  
  326. Subject:    -8- Is it possible to remotely install IRIX over a network?
  327. Date: 20 May 93 00:00:01 CST
  328.  
  329. Yes. You can install IRIX from a remote machine which has a CD-ROM, a
  330. tape drive, or an IRIX distribution directory.  All of these scenarios
  331. (and several others) are described in detail in the "IRIS Software
  332. Installation Guide".  Examples are provided.
  333.  
  334. ------------------------------
  335.  
  336. Subject:    -9- Which IRIX CD is the program 'foo' on?
  337. Date: 10 Dec 93 00:00:01 EST
  338.  
  339. Load the CD and try 'grep foo /CDROM/dist/*.idb'. If you don't get any
  340. output, 'foo' isn't on that CD. If you do, it is, and one of the fields
  341. is the subsystem in which 'foo' lives.
  342.  
  343. ------------------------------
  344.  
  345. Subject:   -10- Why doesn't 'inst' work?
  346. Date: 16 Jan 94 00:00:01 EST
  347.  
  348. One possibility is that you're using an old 'inst' with new software.
  349. Always use an 'inst' at least as new as what you're installing.
  350.  
  351. ------------------------------
  352.  
  353. Subject:   -11- How can I install IRIX onto a second disk which I can
  354.                 then move to another machine?
  355. Date: 20 Jan 94 00:00:01 EST
  356.  
  357. With difficulty. Many parts of the installation process assume that
  358. you're installing IRIX onto your system disk (SCSI ID 1). Just fiddle
  359. with SCSI ID switches and/or move disks around to make the disk onto
  360. which you want to install IRIX the system disk for the duration of the
  361. installation.
  362.  
  363. Furthermore, IRIX has many hardware dependencies, so you should only
  364. move system disks between absolutely identical machines. If you want to
  365. make a system disk for a machine without a network connection, CD-ROM
  366. or tape drive, the easiest and safest way is to borrow another CD-ROM
  367. or tape drive.
  368.  
  369. If you want to try anyway, Justin Mason <jmason@iona.ie> reports that
  370. the following works under IRIX 5.1.1:
  371.  
  372. Set up the disk, e.g. with SCSI id 4, fx a generic "[bo]otable"
  373. partition setup onto it, and mkfs the partitions. Copy sash, etc. from
  374. your system disk to the new disk with dvhtool. Boot up the miniroot
  375. as usual, go into inst, choose "admin" from the menu and do the
  376. following, replacing SCSI IDs and partition numbers as appropriate:
  377.  
  378.   umount /root
  379.   umount /root/usr
  380.   mount /dev/dsk/dks0d4s0 /root
  381.   mount /dev/dsk/dks0d4s6 /root/usr
  382.   mount                    # Just to check
  383.   return                # Go back to main inst menu
  384.  
  385. Then install as you like.
  386.  
  387. ------------------------------
  388.  
  389. Subject:   -12- How can I copy my system disk onto a second disk which I
  390.                 can then move to another machine?
  391. Date: 20 Feb 94 00:00:01 EST
  392.  
  393. See the article in the Jul/Aug 92 Pipeline and the addendum in the
  394. Nov/Dec 92 Pipeline, and note that the warning about hardware
  395. dependencies in the previous question applies here too.
  396.  
  397. ------------------------------
  398.  
  399. Subject:   -13- I think I've found a security hole in IRIX; whom do I
  400.                 notify at SGI?
  401. Date: 10 Dec 93 00:00:01 CST
  402.  
  403. In general, if you find a security problem (or think you have), you can
  404. send it to postmaster@sgi.com. This address gets a lot of mail, so you
  405. may want to CC your mail to one of the SGI employees who regularly post
  406. to Usenet. (Several have indicated that they will be glad to know about
  407. such things.)
  408.  
  409. You can also notify CERT <cert@cert.org>, who will contact the
  410. appropriate people from their contact list. They may take some time.
  411.  
  412. ------------------------------
  413.  
  414. Subject: ! -14- What security problems does IRIX have?
  415. Date: 05 Apr 94 00:00:01 EST
  416.  
  417. Before we start, some general comments:
  418.  
  419. - IRIX is too complex for this list to be complete. We only discuss
  420.   problems we know about. We don't discuss insecurely designed systems
  421.   (like YP) or ways in which you might misconfigure your system, only
  422.   bugs.  We don't discuss third-party software, free or not.
  423.  
  424. - Read rtfm.mit.edu:/pub/usenet/news.answers/security-faq and the books
  425.   and papers listed therein for general discussions of Unix security.
  426.   Look on ftp.cert.org:/ for CERT advisories, descriptions of what CERT
  427.   and CERT advisories are, and other security-related material.
  428.  
  429. - Prudence and space permit us to describe only how to close holes, not
  430.   to exploit them. Try comp.security.unix.
  431.  
  432. - Some of the fixes involve installing a new version of a setuid
  433.   binary.  Be sure that you 1) make it executable, setuid and owned by
  434.   the correct user and group (or it won't work), and 2) remove the old
  435.   version so bad guys can't use it!
  436.  
  437. Now for the holes themselves:
  438.  
  439. - CERT advisory CA-92:08, which you can get from
  440.  
  441.     ftp.cert.org:/pub/cert_advisories/CA-92:08.SGI.lp.vulnerability
  442.  
  443.   describes problems with the permissions of 'lp'-related parts of IRIX
  444.   which allow anyone who can log in as lp to get root access. They are
  445.   fixed in IRIX 4.0.5.  Briefly, the fix is
  446.  
  447.     su root
  448.     cd /usr/lib
  449.     chmod a-s,go-w lpshut lpmove accept reject lpadmin
  450.     chmod go-ws lpsched vadmin/serial_ports vadmin/users vadmin/disks
  451.     cd /usr/bin
  452.     chmod a-s,go-w disable enable
  453.     chmod go-ws cancel lp lpstat
  454.  
  455. - CERT advisory CA-93:16, which you can get from
  456.  
  457.     ftp.cert.org:/pub/cert_advisories/CA-93:16.sendmail.vulnerability
  458.  
  459.   describes a hole in /usr/lib/sendmail which allows anyone root
  460.   access, whether they can log in initially or not!  Fixed versions for
  461.   IRIX 4.0.x and 5.x are at
  462.  
  463.     ftp.sgi.com:/sgi/IRIX4.0/sendmail/
  464.     ftp.sgi.com:/sgi/IRIX5.0/sendmail/
  465.  
  466. - CERT advisory CA-93:17, which you can get from
  467.  
  468.     ftp.cert.org:/pub/cert_advisories/CA-93:17.xterm.logging.vulnerability
  469.  
  470.   describes a hole in /usr/bin/X11/xterm which allows any user root
  471.   access. It is fixed in IRIX 5.x.  A fixed version for IRIX 4.x is at
  472.  
  473.     ftp.sgi.com:/sgi/IRIX4.0/xterm/
  474.  
  475.   The 'fix', incidentally, is that logging is completely disabled.
  476.  
  477. - /usr/bsd/rdist has several holes which allow any user root access.
  478.   Some are fixed in IRIX 4.0.5x, but some are still present in all
  479.   versions of IRIX 4.0.x and 5.x, including the 4.0.5 version on
  480.   ftp.sgi.com. Close the hole with 'chmod -s'. rdist will then work
  481.   only when used by root.
  482.  
  483.   If your non-root users need 'rdist', there is a free version which
  484.   claims to be free of all known holes in usc.edu:/pub/rdist/.  Make
  485.   sure you get version 6.1 beta 3 or later.
  486.  
  487.   Note that CERT advisory CA-91:20
  488.   (ftp.cert.org:/pub/cert_advisories/CA-91:20.rdist.vulnerability) is
  489.   badly out of date.
  490.  
  491. - The 'lpr' subsystem in IRIX 4.0.x and 5.x has several holes which
  492.   allow a non-root user to become root. Use 'lp' instead if you
  493.   can. If you don't need 'lpr', make sure it isn't installed. (It
  494.   lives in the eoe2.sw.lpr subsystem.) If you do need 'lpr', try the
  495.   patched version of the Net/2 BSD lpr at
  496.   ftp.umbc.edu:/pub/sgi/patched-lpr.tar.Z. The '-s' (symbolic link)
  497.   option is disabled to avoid one of the security holes.
  498.  
  499. - /usr/bin/under is an unused (!) part of 'rexd'. It is setuid root and
  500.   may allow root access, so 'chmod -s' it just in case. Note that SGI
  501.   ships IRIX with 'rexd' turned off because 'rexd' is itself a security
  502.   problem.
  503.  
  504. - /usr/etc/arp is setgid sys, allowing anyone who can log into your
  505.   machine to read files which should be readable only by group 'sys'.
  506.   Close the hole with 'chmod -s'. This prevents non-root users from
  507.   using 'arp' at all, but they don't generally need it.
  508.  
  509. - /usr/sbin/cdinstmgr is setuid root and is a script. Setuid scripts
  510.   are a well-known Unix security problem. IRIX ignores them by default,
  511.   but 'chmod -s /usr/sbin/cdinstmgr' just in case.
  512.  
  513. Finally, several aspects of SGI's default IRIX configuration were
  514. chosen for convenience, not security. Unless your machine is not
  515. networked, you may be more concerned about security than SGI assumed.
  516. Note that these items have been discussed on Usenet many times, and
  517. Usenet chatter is not a good way to change SGI policy. If they bother
  518. you, talk to your sales rep or just fix them yourself as follows:
  519.  
  520. - Several accounts come without passwords, including (but not limited
  521.   to) guest, 4Dgifts, demos, tutor, tour and particularly lp. Examine
  522.   /etc/passwd and lock all unnecessarily open accounts.  Note that 1)
  523.   parts of IRIX (e.g. 'inst') use the open guest account by default,
  524.   and 2) remote 'lp' clients need access to the lp account to print, so
  525.   you'll need to make other arrangements.
  526.  
  527. - 'xdm' does 'xhost +' by default when you log in. This allows anyone
  528.   to open windows on your display and even to record what you type at
  529.   your keyboard. Close this hole by removing the 'xhost +' from
  530.   /usr/lib/X11/xdm/Xsession and /usr/lib/X11/xdm/Xsession-remote. Note
  531.   that the Xauthority mechanism has several different problems in IRIX
  532.   4.0.x, so you'll need to say 'xhost +localhost' to run DGL programs
  533.   and 'xhost +otherhost' to display remote X programs.
  534.  
  535. - At least some of the possible default values of the PATH environment
  536.   variable begin with the current directory. (The system interprets
  537.   either a period or the empty string in any component of PATH as the
  538.   current directory. PATH is colon-separated, so if it begins with a
  539.   colon the first component is the empty string.) This exposes you to
  540.   Trojan horse programs. Set PATH to a safe value (remove the current
  541.   directory, or at least move it to the end) in /etc/cshrc and/or
  542.   /etc/profile.
  543.  
  544. ------------------------------
  545.  
  546. Subject:   -15- How can I log more information about logins?
  547. Date: 22 Jan 94 00:00:01 EST
  548.  
  549. - 'last', 'who', etc. get remote login information from /etc/xutmp and
  550.   /etc/xwtmp. That information is only logged into these files if they
  551.   already exist. To create them, just say 'touch /etc/xutmp
  552.   /etc/xwtmp'. In IRIX 5.x, 'touch /var/adm/utmpx /var/adm/wtmpx'.
  553.  
  554. - As described in the login(1) manpage, you can add the line
  555.   'syslog=all' to /etc/config/login.options to log all login attempts,
  556.   not just successful ones, in /usr/adm/SYSLOG.
  557.  
  558. - 'ftpd', 'rshd' and 'tftpd' all have options ('-l' or '-L') which
  559.   cause them to log all accesses. See their manpages. 'ftpd' also has
  560.   '-ll' and '-lll' options (undocumented before IRIX 5.x) which log
  561.   individual file transfers and the sizes of those files respectively.
  562.   Add the options to the last fields (not the second-to-last) of the
  563.   appropriate lines of /usr/etc/inetd.conf (/etc/inetd.conf in IRIX
  564.   5.x), then do 'killall -HUP inetd' or reboot.
  565.  
  566. ------------------------------
  567.  
  568. Subject:   -16- I've just edited inetd.conf, and nothing changed. Why?
  569. Date: 10 Dec 93 00:00:01 CST
  570.  
  571. You need to make 'inetd' reread the file. Do 'killall -HUP inetd' or
  572. reboot.
  573.  
  574. ------------------------------
  575.  
  576. Subject:   -17- How do I make an anonymous or restricted FTP account?
  577. Date: 10 Dec 93 00:00:01 EST
  578.  
  579. Read the ftpd(1M) manpage. Be especially sure that the home directory
  580. (/usr/people/ftp) is owned and writable only by root, NOT ftp.
  581.  
  582. ------------------------------
  583.  
  584. Subject:   -18- How do I set the number of processes allowed on my
  585.                 machine?
  586. Date: 23 Jan 94 00:00:01 CST
  587.  
  588. Change NPROC in usr/sysgen/master.d/kernel, run '/etc/autoconfig -f'
  589. and reboot. In IRIX 5.x, use 'systune'.
  590.  
  591. ------------------------------
  592.  
  593. Subject:   -19- I want to install a termcap for 'iris-ansi-net' on my
  594.                 non-SGI system, but I can't find a termcap file on the
  595.                 SGI.  Where can I get one?
  596. Date: 20 May 93 00:00:01 CST
  597.  
  598. SGIs use the system 5 style terminfo stuff.  What you want can be done
  599. though.  See the infocmp(1) manpage and the documentation about -r.
  600. This should do the job: 'infocmp -Cr iris-ansi'.
  601.  
  602. If you don't have infocmp, you have to install eoe2.sw.terminf, which
  603. is not installed by default.
  604.  
  605. ------------------------------
  606.  
  607. Subject:   -20- My SGI crashed and generated a file,
  608.                 /usr/adm/crash/vmcore.1. How can I examine this file to
  609.                 see what crashed my system?
  610. Date: 10 Dec 93 00:00:01 EST
  611.  
  612. For a start, you can use 'dbx' like so:
  613.  
  614.   dbx -k /usr/adm/crash/{unix,vmcore}.#
  615.   t
  616.   &putbuf/1000s
  617.  
  618. Some machines have a special 'dbx' for crash dumps,
  619. /usr/adm/crash/dbx.  If it exists, use it instead of /usr/bin/dbx.
  620.  
  621. There is also a script, 'crpt', which does this and more
  622. automagically.  One version lives at
  623. viz.tamu.edu:/pub/sgi/software/crpt/, but ask the TAC when you call to
  624. make sure you have the latest and greatest.
  625.  
  626. ------------------------------
  627.  
  628. Subject:   -21- How can I tell what hostname to use in /etc/exports?
  629. Date: 07 Feb 94 00:00:01 EST
  630.  
  631. NFS servers may need a particular form of a client's name in
  632. /etc/exports to allow the client access. This may not be obvious, for
  633. example if the server is also a router. Log in from the client to the
  634. server and say 'echo $REMOTEHOST' to see what the server thinks the
  635. client is called, and put that in /etc/exports.
  636.  
  637. IRIX 5.2's System Manager ('chost') should be able to determine the
  638. correct hostname for you.
  639.  
  640. ------------------------------
  641.  
  642. Subject:   -22- Why can't I export an NFS-mounted filesystem?
  643. Date: 10 Dec 93 00:00:01 CST
  644.  
  645. This is known as multi-hop NFS. It is not allowed or supported in
  646. (Sun's) NFS because it is not in general possible to detect errors such
  647. as infinite mount loops, on either the client or the server.
  648.  
  649. ------------------------------
  650.  
  651. Subject:   -23- Why can't Ultrix automount SGI filesystems?
  652. Date: 10 Dec 93 00:00:01 CST
  653.  
  654. Ultrix's automount uses an "untrusted" port for mount requests. Add
  655. an '-n' to the mountd lines in /usr/etc/inetd.conf (/etc/inetd.conf
  656. in IRIX 5.x), like so:
  657.  
  658. mountd/1    stream  rpc/tcp wait    root    /usr/etc/rpc.mountd     mountd -n
  659. mountd/1    dgram   rpc/udp wait    root    /usr/etc/rpc.mountd     mountd -n
  660.  
  661. then 'killall mountd' and 'killall -HUP inetd' or reboot.
  662.  
  663. ------------------------------
  664.  
  665. Subject: + -24- Why does 'tar' work strangely on a filesystem mounted
  666.                 from an SGI?
  667. Date: 03 Apr 94 00:00:01 EST
  668.  
  669. When user A extracts a file owned by user B from a tar archive, 'tar'
  670. makes the file owned by user A unless user A is the superuser.  Some
  671. systems allow users to give files away (e.g. IRIX); some do not (e.g.
  672. SunOS).  On some systems with the restricted behavior (SunOS among
  673. them), 'tar' tries to give the file to user B whether or not user A is
  674. the superuser, assuming that the chown system call will fail if user A
  675. is not. This is not true if user A is using 'tar' on (e.g.) a Sun to
  676. extract files onto a filesystem NFS-mounted from (e.g.) an SGI. 'tar'
  677. may create zero-length files or give away directories and then be
  678. unable to extract files into them.
  679.  
  680. Work around the problem by doing the 'tar' on the SGI or extracting
  681. onto a Sun filesystem. It is possible that third-party versions of
  682. 'tar' (e.g. GNU tar) are smarter; let us know if so. Don't turn the
  683. restricted_chown kernel variable on on the SGI; while this will fix the
  684. problem at hand, it will break SGI programs which need to give files
  685. away without running as root (notably /bin/mail).
  686.  
  687. ------------------------------
  688.  
  689. Subject:   -25- Is 'pcnfsd' available for the SGI?
  690. Date: 27 Feb 94 00:00:01 EST
  691.  
  692. For IRIX 4.0.x, look in ftp.sgi.com:/support/pcnfsd.sysV/. (Note that
  693. although SGI makes this available, they do not support it.) For IRIX 5.x,
  694. look in viz.tamu.edu:/pub/sgi/software/pcnfsd/.
  695.  
  696. ------------------------------
  697.  
  698. Subject:   -26- Can I export a CD-ROM from my SGI to a non-SGI?
  699. Date: 10 Dec 93 00:00:01 EST
  700.  
  701. Not in IRIX 4.0.x. You can in IRIX 5.x, as you would any other
  702. filesystem.
  703.  
  704. ------------------------------
  705.  
  706. Subject:   -27- Why can't I export an ISO 9660 CD-ROM using NFS?
  707. Date: 20 Feb 94 00:00:01 EST
  708.  
  709. You can, but only to another SGI (see the previous question) and
  710. there's a catch. Add the CD-ROM filesystem to /etc/exports and export
  711. it with 'exportfs' *before* you mount the CD-ROM.  This chicanery is
  712. not necessary in IRIX 5.x. For more detail, read
  713. viz.tamu.edu:/pub/sgi/hardware/exporting-iso-9660-cdrom or the article
  714. in the Jan/Feb 93 Pipeline, or for an up-to-date copy call the TAC and
  715. ask for SGI's writeup on "Mounting an ISO 9660 CD Across NFS".
  716.  
  717. ------------------------------
  718.  
  719. Subject:   -28- How can I read an IRIX (EFS) CD-ROM on a machine which
  720.                 doesn't use EFS?
  721. Date: 09 Jan 94 00:00:01 EST
  722.  
  723. You want 'efslook', in viz.tamu.edu:/pub/sgi/software/efslook/.
  724.  
  725. ------------------------------
  726.  
  727. Subject:   -29- Why is my network license daemon ('netlsd') exiting?
  728. Date: 20 May 93 00:00:01 CST
  729.  
  730. For netlsd to run, you need to have 'llbd' and 'glbd' installed and
  731. running.  A complete debugging procedure is in the netls release notes,
  732. which can be read with 'relnotes netls_eoe 5'.
  733.  
  734. ------------------------------
  735.  
  736. Subject:   -30- Why isn't /usr/adm/SYSLOG being updated?
  737. Date: 05 Jul 93 00:00:01 CST
  738.  
  739. Thanks to Vernon Schryver <vjs@rhyolite.wpd.sgi.com> here.
  740.  
  741. Popular causes include:
  742.  
  743. - running out of disk space.
  744.   Once syslogd is unable to write to /usr/adm/SYSLOG, it won't try
  745.   again until it is `killall -HUP syslogd`.
  746.  
  747. - installing IRIX 4.0.X and failing to heed the nagging from
  748.   the system when it is rebooted to run 'versions changed' and combine
  749.   new and old configuration files.  In this case, the trouble is in
  750.   /usr/spool/cron/crontabs/root.
  751.  
  752. ------------------------------
  753.  
  754. Subject:   -31- Why is 'rusers' showing users who aren't really logged
  755.                 in?
  756. Date: 30 Dec 93 00:00:01 CST
  757.  
  758. This is a well-known bug in IRIX 4.0.X wherein /etc/utmp is not being
  759. updated properly after a user logout.  'rusers' (and other programs)
  760. are simply reporting the non-updated contents of /etc/utmp.
  761.  
  762. Fixes have been provided by jer@blaise.cif.rochester.edu, David Hinds
  763. <dhinds@allegro.stanford.edu> and Patrick M. Ryan <pat@gsfc.nasa.gov>.
  764. They can be found at viz.tamu.edu:/pub/sgi/software/utmp/.
  765.  
  766. ------------------------------
  767.  
  768. Subject:   -32- How do I make a bootable tape from an IRIX 4.0.X CD?
  769. Date: 20 Feb 94 00:00:01 EST
  770.  
  771. See the Sep/Oct 93 Pipeline for a detailed description, or just follow
  772. Dave Olson <olson@sgi.com>'s summary: Take a look at the distcp(1M)
  773. manpage, and do something like
  774.  
  775.     tapehost# mount -o ro cdhost:/CDROM /mnt
  776.     tapehost# distcp /mnt/dist /dev/nrtape
  777.  
  778. Note that 'fx', 'ide', and 'sash' for all machines are in the dist/sa
  779. file.  'sa' is an image of the first part of the tape; use 'mkbootape
  780. -f sa -l' to see the contents.
  781.  
  782. ------------------------------
  783.  
  784. Subject: ! -33- Why can't I boot one of the stand-alone programs on a
  785.                 tape or CD?
  786. Date: 03 Apr 94 00:00:01 EST
  787.  
  788. One reason is that some CPU names are preceded by periods and some
  789. aren't. Another is that the Indigo R4000 and later CPUs use the suffix
  790. 'ARCS', not 'IP20' or whatever as one might expect from 'hinv'. For
  791. example, the correct command to boot fx directly from the PROM monitor
  792. on an Indigo R4000 is 'boot -f dksc(ctlr,unit,8)sashARCS
  793. dksc(ctlr,unit,7)stand/fx.ARCS'. Note the use of 'ARCS' instead of
  794. 'IP20' and the missing period in 'sashARCS'.
  795.  
  796. ------------------------------
  797.  
  798. Subject:   -34- Why is /debug or /proc full of huge files?
  799. Date: 10 Dec 93 00:00:01 EST
  800.  
  801. Those aren't disk files, they're interfaces to running processes.  Read
  802. the debug(4) and/or proc(4) manpages.
  803.  
  804. ------------------------------
  805.  
  806. Subject:   -35- Why do some programs parse /etc/fstab incorrectly?
  807. Date: 10 Dec 93 00:00:01 EST
  808.  
  809. In IRIX 4.0.5, some programs (e.g. 'fsr') misinterpret lines in
  810. /etc/fstab, so that, e.g.,
  811.  
  812.   /dev/usr /usr efs rw,raw=/dev/rusr,quota 0 0
  813.  
  814. would cause 'fsr' to think that the raw device pathname was
  815. "/dev/rusr,quota" instead of "/dev/rusr". There is no such device, so
  816. /dev/rusr would never be defragmented. You can work around this by
  817. putting the "raw" option last:
  818.  
  819.   /dev/usr /usr efs rw,quota,raw=/dev/rusr 0 0
  820.  
  821. This is fixed in IRIX 5.x.
  822.  
  823. ------------------------------
  824.  
  825. Subject:   -36- My Indigo's Ethernet performance is dog-slow. What
  826.                 gives?
  827. Date: 10 Dec 93 00:00:01 EST
  828.  
  829. Call the TAC. You need the "E++" patch, or IRIX 4.0.5IOP ("Indigo Only
  830. Patch"), which includes the E++ patch.
  831.  
  832. ------------------------------
  833.  
  834. Subject:   -37- My Indigo running 4.0.5IOP is getting SIGSEGVs and
  835.                 crashing. What gives?
  836. Date: 12 Jan 94 00:00:01 EST
  837.  
  838. Make sure you've installed the 4.0.5IOP NFS maintenance patch along
  839. with the rest of 4.0.5IOP. If you're sure you have, call the TAC.
  840. You may need the "IP20 ethernet patch".  This comes *after* 4.0.5IOP,
  841. and is not to be confused with the older "E++ patch" (see the previous
  842. question).
  843.  
  844. ------------------------------
  845.  
  846. Subject:   -38- Why is my Indigo2 panicking?
  847. Date: 10 Jan 94 00:00:01 EST
  848.  
  849. There are several keyboard-related bugs in IRIX 4.0.5H and 4.0.5IOP
  850. which cause Indigo2s to crash or freeze. One sign that these particular
  851. bugs are responsible is the message "PANIC: Timeout Table Overflow" or
  852. "WARNING: Couldn't allocate streams buffer" in /usr/adm/SYSLOG.  They
  853. will be fixed in IRIX 5.2, and in the meantime you can get the "Indigo2
  854. keyboard patch" (aka "pckm patch") from SGI.
  855.  
  856. ------------------------------
  857.  
  858. Subject:   -39- What's this 'iotim' error in my syslog?
  859. Date: 12 Feb 94 00:00:01 EST
  860.  
  861. It's a bug in 'rpc.rstatd' which affects several programs including
  862. 'ruptime' and 'sysmeter'. In IRIX 4.0.5H and later, 'rpc.rstatd'
  863. ignores the problem (returning all but the SCSI disk stats which cause
  864. the error) but still generates a message.  The problem is completely
  865. fixed in IRIX 5.x.  The pre-4.0.5H 'rpc.rstatd' says
  866.  
  867.   rstatd[4840]: read: iotim: No such device or address
  868.  
  869. and the post-4.0.5H 'rpc.rstatd' says
  870.  
  871.   rstatd[4941]: read: bad iotim, no disk stats: No such device or address
  872.  
  873. If you see the former, get the patched 'rpc.rstatd' from
  874. ftp.sgi.com:/support/rpc.rstatd or (for Indigos) upgrade to IRIX
  875. 4.0.5IOP. If you see the latter, relax and wait for IRIX 5.x.
  876.  
  877. ------------------------------
  878.  
  879. Subject:   -40- Why can't 'lp' read my file?
  880. Date: 10 Dec 93 00:00:01 EST
  881.  
  882. 'lp' is setuid, so it can only read world-readable files. You can say
  883. 'lp < file' if you don't want to make your file world-readable.
  884.  
  885. ------------------------------
  886.  
  887. Subject:   -41- How can I use 'lpr' to print to my local printer?
  888. Date: 10 Dec 93 00:00:01 EST
  889.  
  890. SGI provides 'lpr' for printing on remote printers, and does not
  891. support it for local printing. One way to do it anyhow is to make an
  892. /etc/printcap entry with an output filter which is just a wrapper
  893. around 'lp'. If that isn't crystal-clear, call the TAC and ask for
  894. their "faxable" on "Integrating The AT&T Spooler With The BSD LPR Print
  895. Spooler". A not-guaranteed-to-be-up-to-date copy is at
  896. viz.tamu.edu:/pub/sgi/software/lp-lpr/lpr-to-lp.
  897.  
  898. ------------------------------
  899.  
  900. Subject:   -42- How can I use 'lp' to print to an 'lpr'-controlled
  901.                 printer?
  902. Date: 10 Dec 93 00:00:01 EST
  903.  
  904. Two possible ways:
  905.  
  906. - Write an 'lp' interface script that calls 'lpr'. Impressario 1.1 can
  907.   do this for you. If you don't have Impressario you can do it yourself
  908.   or call SGI and ask for their writeup, "LPTOLPR, A Model File for
  909.   LP", which includes (in fact, consists of) just such an interface
  910.   script. A not-guaranteed-to-be-up-to-date copy is at
  911.   viz.tamu.edu:/pub/sgi/software/lp-lpr/lp-to-lpr.
  912.  
  913. - Write an 'lp' replacement script that calls 'lpr'. One such script
  914.   is at viz.tamu.edu:/pub/sgi/software/lp-lpr/lp-wrapper-for-lpr.
  915.  
  916. ------------------------------
  917.  
  918. Subject:   -43- How can I tell 'lp' to turn banner printing or page
  919.                 reversal off or on?
  920. Date: 08 Jan 94 00:00:01 CST
  921.  
  922. 'lp' controls printers via shell scripts, called 'models', which live
  923. in /usr/spool/lp/model. When you install a printer, the appropriate
  924. model script is copied to /usr/spool/lp/interface/<name-of-printer>.
  925.  
  926. To temporarily change a printer's behavior, look at the manpage for its
  927. interface script (or, if there is none, the script itself) to see what
  928. options it wants, and pass them to the script with 'lp's '-o' option.
  929. For example, 'lp -o"-nobanner" file' tells a "Generic Postscript"
  930. printer (described in the gpsinterface(1) manpage) to print 'file'
  931. without a banner page.
  932.  
  933. To permanently change a printer's behavior, edit its interface script.
  934. The following are true for "Generic Postscript" printers, but the idea
  935. is the same for others:
  936.  
  937. - To turn banner printing off or on, change the line 'BANNER=1' to
  938.   'BANNER=0' or vice versa.
  939.  
  940. - To turn page reversal off or on, change the line
  941.   'send=/usr/lib/print/lptops' to 'send="/usr/lib/print/lptops -U"'
  942.   (note the quotes) or vice versa.
  943.  
  944. ------------------------------
  945.  
  946. Subject:   -44- Why can't I 'rdist' files between Suns and SGIs?
  947. Date: 10 Dec 93 00:00:01 EST
  948.  
  949. Sun's 'rdist' expects SGI's 'rdist' to live in /usr/ucb, but it's
  950. actually in /usr/bsd. Make a symbolic link from /usr/ucb/rdist to
  951. /usr/bsd/rdist and all will be well.
  952.  
  953. ------------------------------
  954.  
  955. Subject:   -45- How do I add a static route?
  956. Date: 10 Mar 94 00:00:01 EST
  957.  
  958. Some sites handle IP routing by designating a routing machine and
  959. having all other hosts define a static route to that machine. The way
  960. to do this on SGIs is in the /etc/init.d/network.local script.
  961.  
  962. 1) Read the paragraph just before the copyright at the top of
  963.    /etc/init.d/network and make the links it specifies.
  964.  
  965. 2) Put something like the following in /etc/init.d/network.local,
  966.    replacing ROUTER'S.IP.ADDRESS.HERE with the address of your router.
  967.  
  968.   #! /bin/sh
  969.   case "$1" in
  970.   'start')
  971.       /usr/etc/route add default ROUTER'S.IP.ADDRESS.HERE 1 ;;
  972.   'stop')
  973.       /usr/etc/route delete default ROUTER'S.IP.ADDRESS.HERE ;;
  974.   *)
  975.       echo "Usage: $0 {start|stop}" ;;
  976.   esac
  977.  
  978. If you NFS-mount disks from the other side of the static route, they
  979. will not be unmounted properly during shutdown. You can fix this by
  980. making the links so that /etc/init.d/network.local runs before
  981. /etc/init.d/network: 'ln -s /etc/init.d/network.local
  982. /etc/rc0.d/K41network' instead of '/etc/rc0.d/K39network'.
  983.  
  984. ------------------------------
  985.  
  986. Subject:   -46- How can I make the 'slip' command advertise the Ethernet
  987.                 address of the SLIP client?
  988. Date: 10 Dec 93 00:00:01 EST
  989.  
  990. You can't. Just add something like
  991.  
  992.   /usr/etc/arp -s $USER `netstat -ia | grep :` pub
  993.  
  994. to the shell script in which you start the SLIP process. $USER is the
  995. SLIP client. The 'netstat | grep' part gets the host's Ethernet
  996. address, and 'arp' advertises the host as an ARP server for $USER. See
  997. also the arp(1M) manpage.
  998.  
  999. ------------------------------
  1000.  
  1001. Subject:   -47- How can I set up 'sendmail' to pass 8-bit characters?
  1002. Date: 12 Feb 94 00:00:01 EST
  1003.  
  1004. Dunno, offhand, but many experts say "don't try". RFC822 requires mail
  1005. transport agents to *clear* the eighth bit, and many hosts do. Some
  1006. which don't may crash when they get mail with the eighth bit set.
  1007. Instead, use a MIME-compatible mail program. MIME, described in
  1008. RFC1521, is a standard for enclosing non- RFC822 material in your
  1009. mail.  The apps FAQ discusses several mail programs which support it.
  1010.  
  1011. Nonetheless, if someone wants to tell us about putting SGI's 'sendmail'
  1012. into 8-bit mode we'll note it here.
  1013.  
  1014. ------------------------------
  1015.  
  1016. Subject:   -48- Why are my mailbox files changing ownership?
  1017. Date: 17 Jan 94 00:00:01 CST
  1018.  
  1019. If your mail directory is mounted from another machine, your machine
  1020. does not have root access, and the other machine has BSD-style
  1021. "restricted chown" (either because it's not an SGI or because someone
  1022. turned restricted chown on), /bin/mail will change mail file ownership
  1023. when delivering local mail. Without unrestricted chown or root access,
  1024. /bin/mail is unable to give mail files back to their owners after
  1025. delivering mail. You can fix the problem by turning off restricted
  1026. chown on the other machine (if it's an SGI), exporting the mail
  1027. directory with root access for your machine, or waiting for IRIX 5.2,
  1028. in which the problem will be fixed.
  1029.  
  1030. ------------------------------
  1031.  
  1032. Subject:   -49- Why isn't a valid user getting their mail?
  1033. Date: 24 Jan 94 00:00:01 EST
  1034.  
  1035. IRIX' mail system requires "valid users" to have both valid password
  1036. file entries (whether local or via NIS) and home directories. The
  1037. latter often trips one up when installing POP servers and whatnot,
  1038. where home directories aren't really necessary. Just make a fake one.
  1039.  
  1040. ------------------------------
  1041.  
  1042. Subject:   -50- How can SGIs and Suns share a mail spool?
  1043. Date: 05 Feb 94 00:00:01 EST
  1044.  
  1045. Paul Riddle <paulr@umbc.edu> has written up how he did it. Read
  1046. ftp.umbc.edu:/pub/sgi/shared-spool.text.
  1047.  
  1048. ------------------------------
  1049.  
  1050. Subject:   -51- What's an "unknown mailer error"?
  1051. Date: 20 Feb 94 00:00:01 EST
  1052.  
  1053. There's a list in viz.tamu.edu:/pub/sgi/software/mail/mail-errors.
  1054.  
  1055. ------------------------------
  1056.  
  1057. Subject:   -52- What's "mailbox: Error 0"?
  1058. Date: 05 Mar 94 00:00:01 EST
  1059.  
  1060. It's a harmless bug; don't worry about it. It is present in IRIX 4.0.x
  1061. before 4.0.5H/4.0.5IOP and fixed in those and later versions.
  1062.  
  1063. ------------------------------
  1064.  
  1065. Subject:   -53- Can I change my full name or login shell without being
  1066.                 superuser?
  1067. Date: 16 Mar 94 00:00:01 EST
  1068.  
  1069. Maybe. IRIX 4.x has no 'chfn' or 'chsh', so if you're a local user
  1070. you're stuck. However, if your account is on NIS (Yellow Pages) you can
  1071. use 'ypchpass'. You might also ask your superuser to install one of the
  1072. many free implementations of 'chfn' and/or 'chsh'; one is in volume 3 of
  1073. comp.sources.unix (ftp.uu.net:/usenet/comp.sources.unix/volume3/).
  1074.  
  1075. ------------------------------
  1076.  
  1077. Subject:   -54- How do I extend an existing filesystem onto a new disk?
  1078. Date: 24 Jan 94 00:00:01 EST
  1079.  
  1080. Back up the existing filesystem (just in case) then run 'mklv' and
  1081. 'growfs'. 'mklv' and 'growfs' are nondestructive, so you don't need to
  1082. restore the backup unless you screw up. Don't use 'mkfs', which does
  1083. destroy existing data.
  1084.  
  1085. ------------------------------
  1086.  
  1087. Subject:   -55- How can I measure my network's reliability?
  1088. Date: 13 Feb 94 00:00:01 EST
  1089.  
  1090. Don't worry about collisions. They are part of normal operation on a
  1091. crowded Ethernet. You *should* worry about late collisions (which are
  1092. logged to the console) and lost packets (which you can easily measure
  1093. with the command 'ping -fs 3000 -c 1000 someotherhost'), which usually
  1094. mean network hardware problems or a misconfigured bridge or router.
  1095.  
  1096. ------------------------------
  1097.  
  1098. Subject:   -56- How do I know if I need more memory and/or swap space?
  1099. Date: 20 Feb 94 00:00:01 EST
  1100.  
  1101. If processes are killed due to lack of memory/swap, you need more
  1102. memory and/or swap space. If your CPU is always waiting for swapping
  1103. (run 'osview' and look at the "%Swap" entry under "Wait Ratio") you
  1104. need more memory.
  1105.  
  1106. ------------------------------
  1107.  
  1108. Subject:   -57- How much swap space should I have per megabyte of
  1109.                 memory?
  1110. Date: 20 Feb 94 00:00:01 EST
  1111.  
  1112. An oft-recommended ratio is X memory:2.5 X swap, but this may be too
  1113. slow. Decide how much of your favorite program (plus IRIX) needs to be
  1114. resident for good performance and how much doesn't, and make sure you
  1115. have enough memory for the former and enough memory plus swap for the
  1116. latter. Put "rmem" and "swp" in your ~/.grosview file, run 'gr_osview'
  1117. and run your favorite program to see what it needs.
  1118.  
  1119. ------------------------------
  1120.  
  1121. Subject:   -58- How can I increase my swap space?
  1122. Date: 20 Feb 94 00:00:01 EST
  1123.  
  1124. See the Jan/Feb 93 Pipeline for a detailed writeup, or call the TAC and
  1125. have them fax you the very latest version. It will be much easier in
  1126. IRIX 5.x, which will support swapping to files.
  1127.  
  1128. ------------------------------
  1129.  
  1130. End of sgi/faq/admin Digest
  1131. ******************************
  1132. -- 
  1133. The SGI FAQ group                                sgi-faq@viz.tamu.edu
  1134. Finger us for info on the SGI FAQs, or look in viz.tamu.edu:/pub/sgi.
  1135.  
  1136.  
  1137. From odin!sgigate.sgi.com!sgiblab!sdd.hp.com!swrinde!cs.utexas.edu!news.tamu.edu!sgi-faq Wed Apr 13 11:20:00 PDT 1994
  1138. Article: 9154 of comp.sys.sgi.misc
  1139. Xref: odin comp.sys.sgi.misc:9154 comp.answers:4798 news.answers:20655
  1140. Path: odin!sgigate.sgi.com!sgiblab!sdd.hp.com!swrinde!cs.utexas.edu!news.tamu.edu!sgi-faq
  1141. From: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  1142. Newsgroups: comp.sys.sgi.misc,comp.answers,news.answers
  1143. Subject: SGI admin Frequently Asked Questions (FAQ)
  1144. Supersedes: <admin_764182743@viz.tamu.edu>
  1145. Followup-To: comp.sys.sgi.misc
  1146. Date: 6 Apr 1994 20:11:18 GMT
  1147. Organization: Visualization Lab, Texas A&M University
  1148. Lines: 1120
  1149. Approved: news-answers-request@mit.edu
  1150. Expires: 4 May 1994 20:11:14 GMT
  1151. Message-ID: <admin_765663074@viz.tamu.edu>
  1152. Reply-To: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  1153. NNTP-Posting-Host: viz.tamu.edu
  1154. Originator: sgi-faq@viz
  1155.  
  1156. Archive-name: sgi/faq/admin
  1157. Last-modified: Wed Apr  6 15:10:30 CDT 1994
  1158.  
  1159.     SGI admin Frequently Asked Questions (FAQ)
  1160.  
  1161. This is one of the Silicon Graphics FAQ series, which consists of:
  1162.  
  1163.     SGI admin FAQ - IRIX system administration
  1164.     SGI apps FAQ - Applications & compilers
  1165.     SGI graphics FAQ - Graphics and user environment customization
  1166.     SGI hardware FAQ - Hardware
  1167.     SGI misc FAQ - Introduction & miscellaneous information
  1168.     SGI performer FAQ - IRIS Performer
  1169.     SGI pointer FAQ - Pointer to the other FAQs
  1170.  
  1171. Read the misc FAQ for information about the FAQs themselves.  Each FAQ
  1172. is posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  1173. newsgroups (whose purpose is to store FAQs) twice per month.  If you
  1174. can't find one of the FAQs with your news program, you can get it by
  1175. anonymous FTP from one of these sites:
  1176.  
  1177.     rtfm.mit.edu:/pub/usenet/comp.sys.sgi.misc/
  1178.     rtfm.mit.edu:/pub/usenet/news.answers/sgi/faq/
  1179.     rtfm.mit.edu:/pub/usenet/comp.answers/sgi/faq/
  1180.     viz.tamu.edu:/pub/sgi/faq/
  1181.  
  1182. Note that rtfm.mit.edu is home to many other FAQs and informational
  1183. documents, and is a good place to look if you can't find an answer
  1184. here. If you can't use FTP, send mail to mail-server@rtfm.mit.edu with
  1185. the command 'send usenet/news.answers/ftp-list/faq' on a line by itself
  1186. in the text, and it will send you a document describing how to FTP by
  1187. mail. You can also read a hypertext version of the FAQs at
  1188.  
  1189.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/sgi/top.html
  1190.  
  1191. The SGI FAQs are freely distributable and wide circulation is encouraged.
  1192. The contents are accurate as far as we know, but the usual disclaimers
  1193. apply. Please send additions and changes to sgi-faq@viz.tamu.edu.
  1194.  
  1195. Topics covered in this FAQ:
  1196. ---------------------------
  1197.    -1- How can I determine which release of IRIX I'm running?
  1198.    -2- How can I determine my SGI's Ethernet (and/or FDDI) address?
  1199.    -3- How can I administer my Iris without a graphics terminal?
  1200.    -4- Is it possible to use the visual admin tools on a system with
  1201.        graphics to administer a system without graphics?
  1202.    -5- How can I boot directly into single-user mode?
  1203.    -6- How can I boot from a non-default disk?
  1204.    -7- How can I boot my machine using a server on the other side of a
  1205.        router?
  1206.    -8- Is it possible to remotely install IRIX over a network?
  1207.    -9- Which IRIX CD is the program 'foo' on?
  1208.   -10- Why doesn't 'inst' work?
  1209.   -11- How can I install IRIX onto a second disk which I can then move
  1210.        to another machine?
  1211.   -12- How can I copy my system disk onto a second disk which I can then
  1212.        move to another machine?
  1213.   -13- I think I've found a security hole in IRIX; whom do I notify at
  1214.        SGI?
  1215. ! -14- What security problems does IRIX have?
  1216.   -15- How can I log more information about logins?
  1217.   -16- I've just edited inetd.conf, and nothing changed. Why?
  1218.   -17- How do I make an anonymous or restricted FTP account?
  1219.   -18- How do I set the number of processes allowed on my machine?
  1220.   -19- I want to install a termcap for 'iris-ansi-net' on my non-SGI
  1221.        system, but I can't find a termcap file on the SGI.  Where can I
  1222.        get one?
  1223.   -20- My SGI crashed and generated a file, /usr/adm/crash/vmcore.1. How
  1224.        can I examine this file to see what crashed my system?
  1225.   -21- How can I tell what hostname to use in /etc/exports?
  1226.   -22- Why can't I export an NFS-mounted filesystem?
  1227.   -23- Why can't Ultrix automount SGI filesystems?
  1228. + -24- Why does 'tar' work strangely on a filesystem mounted from an
  1229.        SGI?
  1230.   -25- Is 'pcnfsd' available for the SGI?
  1231.   -26- Can I export a CD-ROM from my SGI to a non-SGI?
  1232.   -27- Why can't I export an ISO 9660 CD-ROM using NFS?
  1233.   -28- How can I read an IRIX (EFS) CD-ROM on a machine which doesn't
  1234.        use EFS?
  1235.   -29- Why is my network license daemon ('netlsd') exiting?
  1236.   -30- Why isn't /usr/adm/SYSLOG being updated?
  1237.   -31- Why is 'rusers' showing users who aren't really logged in?
  1238.   -32- How do I make a bootable tape from an IRIX 4.0.X CD?
  1239. ! -33- Why can't I boot one of the stand-alone programs on a tape or CD?
  1240.   -34- Why is /debug or /proc full of huge files?
  1241.   -35- Why do some programs parse /etc/fstab incorrectly?
  1242.   -36- My Indigo's Ethernet performance is dog-slow. What gives?
  1243.   -37- My Indigo running 4.0.5IOP is getting SIGSEGVs and crashing. What
  1244.        gives?
  1245.   -38- Why is my Indigo2 panicking?
  1246.   -39- What's this 'iotim' error in my syslog?
  1247.   -40- Why can't 'lp' read my file?
  1248.   -41- How can I use 'lpr' to print to my local printer?
  1249.   -42- How can I use 'lp' to print to an 'lpr'-controlled printer?
  1250.   -43- How can I tell 'lp' to turn banner printing or page reversal off
  1251.        or on?
  1252.   -44- Why can't I 'rdist' files between Suns and SGIs?
  1253.   -45- How do I add a static route?
  1254.   -46- How can I make the 'slip' command advertise the Ethernet address
  1255.        of the SLIP client?
  1256.   -47- How can I set up 'sendmail' to pass 8-bit characters?
  1257.   -48- Why are my mailbox files changing ownership?
  1258.   -49- Why isn't a valid user getting their mail?
  1259.   -50- How can SGIs and Suns share a mail spool?
  1260.   -51- What's an "unknown mailer error"?
  1261.   -52- What's "mailbox: Error 0"?
  1262.   -53- Can I change my full name or login shell without being superuser?
  1263.   -54- How do I extend an existing filesystem onto a new disk?
  1264.   -55- How can I measure my network's reliability?
  1265.   -56- How do I know if I need more memory and/or swap space?
  1266.   -57- How much swap space should I have per megabyte of memory?
  1267.   -58- How can I increase my swap space?
  1268.  
  1269. ----------------------------------------------------------------------
  1270.  
  1271. Subject:    -1- How can I determine which release of IRIX I'm running?
  1272. Date: 07 Feb 94 00:00:01 CST
  1273.  
  1274. 'uname -a' gives you all the kernel info; see the uname(1) manpage for
  1275. other options.
  1276.  
  1277. Of more general use, since kernels don't always reflect installed
  1278. software, is the 'versions' command.  'versions' with no arguments
  1279. lists all the installed software subsystems.
  1280.  
  1281. IRIX 5.2's System Manager ('chost') has the IRIX version number under
  1282. "IRIX Version" and a listing of installed software under "Software"
  1283. (the "Show Installed" button).
  1284.  
  1285. ------------------------------
  1286.  
  1287. Subject:    -2- How can I determine my SGI's Ethernet (and/or FDDI)
  1288.                 address?
  1289. Date: 07 Feb 94 00:00:01 CST
  1290.  
  1291. Many thanks to Miguel Sanchez <miguel@oasis.csd.sgi.com> for providing
  1292. the original version of the following discussion, and to Dave Olson
  1293. <olson@sgi.com> for comments. Andrew Cherenson
  1294. <arc@sgi.com> reminded us that all these methods except
  1295. the first apply to FDDI as well, but we'll just say "Ethernet" below.
  1296.  
  1297. Every system on an Ethernet network must have a unique Ethernet address
  1298. for the network to operate properly. The physical Ethernet address of
  1299. your system is the unique number assigned to the Ethernet hardware on
  1300. your system. This unique number is assigned to the manufacturer of your
  1301. Ethernet hardware by the IEEE (formerly by Xerox, one of the original
  1302. developers of Ethernet). This is not to be confused with the IP
  1303. address, which can be set arbitrarily.
  1304.  
  1305. You may need to determine your system's Ethernet address if your
  1306. network manager requires it before connecting your system to a
  1307. network.  How to do so depends on whether IRIX is running and what
  1308. operating system version is loaded.  Method 1 only provides the
  1309. Ethernet address of the primary interface.  If you have multiple
  1310. Ethernet interfaces (boards) in a system, use method 2, 3, 4 or 5 to
  1311. determine the address(es) of any other interface(s).
  1312.  
  1313. METHOD 1: eaddr
  1314.  
  1315.     If IRIX is not running, and the system is a Personal IRIS (4D20,
  1316.     25, 30, or 35), Indigo, Crimson, Onyx or Challenge, you can obtain
  1317.     the Ethernet address by typing 'eaddr' (older machines) or
  1318.     'printenv eaddr' (newer) at the PROM monitor prompt.  On some
  1319.     machines (4D30 or later) you can say 'nvram eaddr' while IRIX is
  1320.     running to get the same result.
  1321.  
  1322. METHOD 2: netstat
  1323.  
  1324.     Under IRIX 4.0.1 or later, you can use the netstat command. For
  1325.     example,
  1326.  
  1327.     % /usr/etc/netstat -ia
  1328.     Name  Mtu    Network   Address            Ipkts   Ierrs   Opkts  Oerrs  Coll
  1329.     ec0   1500   siligrph  luey7              7765678 21648  384477     0  30338
  1330.                 192.48.200.251
  1331.                 192.0.0.1
  1332.                 08:00:69:06:17:c2
  1333.     lo0   32880  loopback localhost           41438       0   41438     0      0
  1334.                 192.0.0.1
  1335.  
  1336.     As seen on the fourth address line, the address of the system
  1337.     luey7's primary Ethernet interface, "ec0", is 08:00:69:06:17:c2.
  1338.  
  1339. METHOD 3: arp
  1340.  
  1341.     You can obtain the Ethernet address of a Silicon Graphics system by
  1342.     using another system on your network. 'ping' the system whose
  1343.     Ethernet address you want, then use 'arp'. For example,
  1344.  
  1345.     % /usr/etc/ping -c 1 luey6
  1346.     PING luey6.sgi.com (192.48.200.250): 56 data bytes
  1347.     64 bytes from 192.48.200.250: icmp_seq=0 ttl=255 time=0 ms
  1348.     ----luey6.sgi.com PING Statistics----
  1349.     3 packets transmitted, 3 packets received, 0% packet loss
  1350.     round-trip (ms)  min/avg/max = 0/0/0
  1351.     % /usr/etc/arp luey6
  1352.     luey6 (192.48.200.250) at 8:0:69:6:c:40
  1353.     %
  1354.  
  1355. METHOD 4: NetVizualyzer/FDDIVizualyzer and the like
  1356.  
  1357.     SGI's NetVizualyzer/FDDIVizualyzer network monitoring software and
  1358.     at least one public domain equivalent ('netman', at
  1359.     ftp.cs.curtin.edu.au:/pub/netman/) allow you to find the Ethernet
  1360.     address corresponding to any IP address. Read the manual.
  1361.  
  1362. METHOD 5: System Manager
  1363.  
  1364.     The Network Setup part ('cnet') of IRIX 5.2's System Manager tool
  1365.     ('chost') shows the Ethernet address of each interface.
  1366.  
  1367. 4DDN: A Special Case
  1368.  
  1369.     DECnet uses a one-to-one relationship between the DECnet node ID
  1370.     and the Ethernet address. If the DECnet address is changed the
  1371.     Ethernet address is changed. DECnet Ethernet addresses always start
  1372.     with aa:, so you can identify systems running DECnet with 'arp -a'.
  1373.  
  1374.     4DDN is Silicon Graphics' DECnet interconnection product. The
  1375.     Ethernet address of an IRIS running 4DDN will change when 4DDN is
  1376.     started.  Method 1 will return the original Ethernet address for
  1377.     the system.  Methods 2-5 will show the Ethernet address currently
  1378.     in use.
  1379.  
  1380. sysinfo
  1381.  
  1382.     /etc/sysinfo is intended to return a unique identifier, which on
  1383.     some machines includes part or all of the Ethernet address. This is
  1384.     best regarded as an amusing coincidence, like HAL's name in "2001".
  1385.     Don't rely on it.
  1386.  
  1387. ------------------------------
  1388.  
  1389. Subject:    -3- How can I administer my Iris without a graphics
  1390.                 terminal?
  1391. Date: 12 Feb 94 00:00:01 EST
  1392.  
  1393. SGI's visual admin tools ('vadmin' in IRIX 4.0.x and 'chost' in IRIX
  1394. 5.x) need GL. They do not work on X terminals or workstations without
  1395. GL, and will not in the near future. Under IRIX 4.0.x you can use
  1396. 'sysadm' on text terminals for some tasks, but beware of bugs and
  1397. inadequacies: SGI judged 'sysadm' to be too buggy to be worth updating
  1398. for IRIX 5.x.
  1399.  
  1400. Of course, you can always use a text editor and write scripts, or see
  1401. the next question.
  1402.  
  1403. ------------------------------
  1404.  
  1405. Subject:    -4- Is it possible to use the visual admin tools on a system
  1406.                 with graphics to administer a system without graphics?
  1407. Date: 12 Feb 94 00:00:01 CST
  1408.  
  1409. Yes: just rlogin to the graphics-less system and run 'vadmin' (IRIX
  1410. 4.0.x) or 'chost' (IRIX 5.x).  Make sure that the DISPLAY environment
  1411. variable is set correctly and that both the vadmin/sysadmdesktop and
  1412. the shared library subsystems are installed on the graphics-less system
  1413. (which they are in the default installation).
  1414.  
  1415. Under IRIX 5.x, look at the READMEs in /var/sysadmdesktop/rsysmanapps
  1416. and /var/sysadmdesktop/sysmanapps to find out how to use 'chost' to run
  1417. commands on remote systems. Finally, in a future release of IRIX 5.x,
  1418. the sysadmdesktop tools will be able to manage remote systems *without*
  1419. doing an rlogin.
  1420.  
  1421. ------------------------------
  1422.  
  1423. Subject:    -5- How can I boot directly into single-user mode?
  1424. Date: 20 Feb 94 00:00:01 EST
  1425.  
  1426. Use the PROM monitor's 'single' command.
  1427.  
  1428. For machines earlier than 4D35s, whose PROMs don't have that command,
  1429. say 'boot dksc(0,1,0)unix initstate=s'. Replace 'dksc(0,1,0)' with the
  1430. appropriate device and partition if your boot volume is something other
  1431. than a SCSI device partitioned in the standard manner; see the chapter
  1432. on the PROM monitor in the "Advanced Site and Server Administration
  1433. Guide".
  1434.  
  1435. ------------------------------
  1436.  
  1437. Subject:    -6- How can I boot from a non-default disk?
  1438. Date: 20 Jan 94 00:00:01 CST
  1439.  
  1440. Says Justin Mason <jmason@iona.ie>: If your disk is SCSI ID 4, do
  1441.  
  1442.   boot -f dksc(0,4,8)sash dksc(0,4,0)unix root=dks0d4s0
  1443.  
  1444. or
  1445.  
  1446.   setenv bootfile dksc(0,4,8)sash
  1447.   setenv path dksc(0,4,8)
  1448.   setenv root dks0d4s0            # This is the tricky part 
  1449.   auto
  1450.  
  1451. from the PROM. The first method works once, so that subsequent reboots
  1452. use SCSI ID 1, and the second method sets the PROM to boot from ID 4
  1453. every time (until you reset the PROM variables).
  1454.  
  1455. ------------------------------
  1456.  
  1457. Subject:    -7- How can I boot my machine using a server on the other
  1458.                 side of a router?
  1459. Date: 24 Jan 94 00:00:01 EST
  1460.  
  1461. Tell the router to forward BOOTP packets. If it can't, NFS-mount the
  1462. remote volumes on another machine on the same subnet and use the nearby
  1463. machine for your boot server.
  1464.  
  1465. ------------------------------
  1466.  
  1467. Subject:    -8- Is it possible to remotely install IRIX over a network?
  1468. Date: 20 May 93 00:00:01 CST
  1469.  
  1470. Yes. You can install IRIX from a remote machine which has a CD-ROM, a
  1471. tape drive, or an IRIX distribution directory.  All of these scenarios
  1472. (and several others) are described in detail in the "IRIS Software
  1473. Installation Guide".  Examples are provided.
  1474.  
  1475. ------------------------------
  1476.  
  1477. Subject:    -9- Which IRIX CD is the program 'foo' on?
  1478. Date: 10 Dec 93 00:00:01 EST
  1479.  
  1480. Load the CD and try 'grep foo /CDROM/dist/*.idb'. If you don't get any
  1481. output, 'foo' isn't on that CD. If you do, it is, and one of the fields
  1482. is the subsystem in which 'foo' lives.
  1483.  
  1484. ------------------------------
  1485.  
  1486. Subject:   -10- Why doesn't 'inst' work?
  1487. Date: 16 Jan 94 00:00:01 EST
  1488.  
  1489. One possibility is that you're using an old 'inst' with new software.
  1490. Always use an 'inst' at least as new as what you're installing.
  1491.  
  1492. ------------------------------
  1493.  
  1494. Subject:   -11- How can I install IRIX onto a second disk which I can
  1495.                 then move to another machine?
  1496. Date: 20 Jan 94 00:00:01 EST
  1497.  
  1498. With difficulty. Many parts of the installation process assume that
  1499. you're installing IRIX onto your system disk (SCSI ID 1). Just fiddle
  1500. with SCSI ID switches and/or move disks around to make the disk onto
  1501. which you want to install IRIX the system disk for the duration of the
  1502. installation.
  1503.  
  1504. Furthermore, IRIX has many hardware dependencies, so you should only
  1505. move system disks between absolutely identical machines. If you want to
  1506. make a system disk for a machine without a network connection, CD-ROM
  1507. or tape drive, the easiest and safest way is to borrow another CD-ROM
  1508. or tape drive.
  1509.  
  1510. If you want to try anyway, Justin Mason <jmason@iona.ie> reports that
  1511. the following works under IRIX 5.1.1:
  1512.  
  1513. Set up the disk, e.g. with SCSI id 4, fx a generic "[bo]otable"
  1514. partition setup onto it, and mkfs the partitions. Copy sash, etc. from
  1515. your system disk to the new disk with dvhtool. Boot up the miniroot
  1516. as usual, go into inst, choose "admin" from the menu and do the
  1517. following, replacing SCSI IDs and partition numbers as appropriate:
  1518.  
  1519.   umount /root
  1520.   umount /root/usr
  1521.   mount /dev/dsk/dks0d4s0 /root
  1522.   mount /dev/dsk/dks0d4s6 /root/usr
  1523.   mount                    # Just to check
  1524.   return                # Go back to main inst menu
  1525.  
  1526. Then install as you like.
  1527.  
  1528. ------------------------------
  1529.  
  1530. Subject:   -12- How can I copy my system disk onto a second disk which I
  1531.                 can then move to another machine?
  1532. Date: 20 Feb 94 00:00:01 EST
  1533.  
  1534. See the article in the Jul/Aug 92 Pipeline and the addendum in the
  1535. Nov/Dec 92 Pipeline, and note that the warning about hardware
  1536. dependencies in the previous question applies here too.
  1537.  
  1538. ------------------------------
  1539.  
  1540. Subject:   -13- I think I've found a security hole in IRIX; whom do I
  1541.                 notify at SGI?
  1542. Date: 10 Dec 93 00:00:01 CST
  1543.  
  1544. In general, if you find a security problem (or think you have), you can
  1545. send it to postmaster@sgi.com. This address gets a lot of mail, so you
  1546. may want to CC your mail to one of the SGI employees who regularly post
  1547. to Usenet. (Several have indicated that they will be glad to know about
  1548. such things.)
  1549.  
  1550. You can also notify CERT <cert@cert.org>, who will contact the
  1551. appropriate people from their contact list. They may take some time.
  1552.  
  1553. ------------------------------
  1554.  
  1555. Subject: ! -14- What security problems does IRIX have?
  1556. Date: 05 Apr 94 00:00:01 EST
  1557.  
  1558. Before we start, some general comments:
  1559.  
  1560. - IRIX is too complex for this list to be complete. We only discuss
  1561.   problems we know about. We don't discuss insecurely designed systems
  1562.   (like YP) or ways in which you might misconfigure your system, only
  1563.   bugs.  We don't discuss third-party software, free or not.
  1564.  
  1565. - Read rtfm.mit.edu:/pub/usenet/news.answers/security-faq and the books
  1566.   and papers listed therein for general discussions of Unix security.
  1567.   Look on ftp.cert.org:/ for CERT advisories, descriptions of what CERT
  1568.   and CERT advisories are, and other security-related material.
  1569.  
  1570. - Prudence and space permit us to describe only how to close holes, not
  1571.   to exploit them. Try comp.security.unix.
  1572.  
  1573. - Some of the fixes involve installing a new version of a setuid
  1574.   binary.  Be sure that you 1) make it executable, setuid and owned by
  1575.   the correct user and group (or it won't work), and 2) remove the old
  1576.   version so bad guys can't use it!
  1577.  
  1578. Now for the holes themselves:
  1579.  
  1580. - CERT advisory CA-92:08, which you can get from
  1581.  
  1582.     ftp.cert.org:/pub/cert_advisories/CA-92:08.SGI.lp.vulnerability
  1583.  
  1584.   describes problems with the permissions of 'lp'-related parts of IRIX
  1585.   which allow anyone who can log in as lp to get root access. They are
  1586.   fixed in IRIX 4.0.5.  Briefly, the fix is
  1587.  
  1588.     su root
  1589.     cd /usr/lib
  1590.     chmod a-s,go-w lpshut lpmove accept reject lpadmin
  1591.     chmod go-ws lpsched vadmin/serial_ports vadmin/users vadmin/disks
  1592.     cd /usr/bin
  1593.     chmod a-s,go-w disable enable
  1594.     chmod go-ws cancel lp lpstat
  1595.  
  1596. - CERT advisory CA-93:16, which you can get from
  1597.  
  1598.     ftp.cert.org:/pub/cert_advisories/CA-93:16.sendmail.vulnerability
  1599.  
  1600.   describes a hole in /usr/lib/sendmail which allows anyone root
  1601.   access, whether they can log in initially or not!  Fixed versions for
  1602.   IRIX 4.0.x and 5.x are at
  1603.  
  1604.     ftp.sgi.com:/sgi/IRIX4.0/sendmail/
  1605.     ftp.sgi.com:/sgi/IRIX5.0/sendmail/
  1606.  
  1607. - CERT advisory CA-93:17, which you can get from
  1608.  
  1609.     ftp.cert.org:/pub/cert_advisories/CA-93:17.xterm.logging.vulnerability
  1610.  
  1611.   describes a hole in /usr/bin/X11/xterm which allows any user root
  1612.   access. It is fixed in IRIX 5.x.  A fixed version for IRIX 4.x is at
  1613.  
  1614.     ftp.sgi.com:/sgi/IRIX4.0/xterm/
  1615.  
  1616.   The 'fix', incidentally, is that logging is completely disabled.
  1617.  
  1618. - /usr/bsd/rdist has several holes which allow any user root access.
  1619.   Some are fixed in IRIX 4.0.5x, but some are still present in all
  1620.   versions of IRIX 4.0.x and 5.x, including the 4.0.5 version on
  1621.   ftp.sgi.com. Close the hole with 'chmod -s'. rdist will then work
  1622.   only when used by root.
  1623.  
  1624.   If your non-root users need 'rdist', there is a free version which
  1625.   claims to be free of all known holes in usc.edu:/pub/rdist/.  Make
  1626.   sure you get version 6.1 beta 3 or later.
  1627.  
  1628.   Note that CERT advisory CA-91:20
  1629.   (ftp.cert.org:/pub/cert_advisories/CA-91:20.rdist.vulnerability) is
  1630.   badly out of date.
  1631.  
  1632. - The 'lpr' subsystem in IRIX 4.0.x and 5.x has several holes which
  1633.   allow a non-root user to become root. Use 'lp' instead if you
  1634.   can. If you don't need 'lpr', make sure it isn't installed. (It
  1635.   lives in the eoe2.sw.lpr subsystem.) If you do need 'lpr', try the
  1636.   patched version of the Net/2 BSD lpr at
  1637.   ftp.umbc.edu:/pub/sgi/patched-lpr.tar.Z. The '-s' (symbolic link)
  1638.   option is disabled to avoid one of the security holes.
  1639.  
  1640. - /usr/bin/under is an unused (!) part of 'rexd'. It is setuid root and
  1641.   may allow root access, so 'chmod -s' it just in case. Note that SGI
  1642.   ships IRIX with 'rexd' turned off because 'rexd' is itself a security
  1643.   problem.
  1644.  
  1645. - /usr/etc/arp is setgid sys, allowing anyone who can log into your
  1646.   machine to read files which should be readable only by group 'sys'.
  1647.   Close the hole with 'chmod -s'. This prevents non-root users from
  1648.   using 'arp' at all, but they don't generally need it.
  1649.  
  1650. - /usr/sbin/cdinstmgr is setuid root and is a script. Setuid scripts
  1651.   are a well-known Unix security problem. IRIX ignores them by default,
  1652.   but 'chmod -s /usr/sbin/cdinstmgr' just in case.
  1653.  
  1654. Finally, several aspects of SGI's default IRIX configuration were
  1655. chosen for convenience, not security. Unless your machine is not
  1656. networked, you may be more concerned about security than SGI assumed.
  1657. Note that these items have been discussed on Usenet many times, and
  1658. Usenet chatter is not a good way to change SGI policy. If they bother
  1659. you, talk to your sales rep or just fix them yourself as follows:
  1660.  
  1661. - Several accounts come without passwords, including (but not limited
  1662.   to) guest, 4Dgifts, demos, tutor, tour and particularly lp. Examine
  1663.   /etc/passwd and lock all unnecessarily open accounts.  Note that 1)
  1664.   parts of IRIX (e.g. 'inst') use the open guest account by default,
  1665.   and 2) remote 'lp' clients need access to the lp account to print, so
  1666.   you'll need to make other arrangements.
  1667.  
  1668. - 'xdm' does 'xhost +' by default when you log in. This allows anyone
  1669.   to open windows on your display and even to record what you type at
  1670.   your keyboard. Close this hole by removing the 'xhost +' from
  1671.   /usr/lib/X11/xdm/Xsession and /usr/lib/X11/xdm/Xsession-remote. Note
  1672.   that the Xauthority mechanism has several different problems in IRIX
  1673.   4.0.x, so you'll need to say 'xhost +localhost' to run DGL programs
  1674.   and 'xhost +otherhost' to display remote X programs.
  1675.  
  1676. - At least some of the possible default values of the PATH environment
  1677.   variable begin with the current directory. (The system interprets
  1678.   either a period or the empty string in any component of PATH as the
  1679.   current directory. PATH is colon-separated, so if it begins with a
  1680.   colon the first component is the empty string.) This exposes you to
  1681.   Trojan horse programs. Set PATH to a safe value (remove the current
  1682.   directory, or at least move it to the end) in /etc/cshrc and/or
  1683.   /etc/profile.
  1684.  
  1685. ------------------------------
  1686.  
  1687. Subject:   -15- How can I log more information about logins?
  1688. Date: 22 Jan 94 00:00:01 EST
  1689.  
  1690. - 'last', 'who', etc. get remote login information from /etc/xutmp and
  1691.   /etc/xwtmp. That information is only logged into these files if they
  1692.   already exist. To create them, just say 'touch /etc/xutmp
  1693.   /etc/xwtmp'. In IRIX 5.x, 'touch /var/adm/utmpx /var/adm/wtmpx'.
  1694.  
  1695. - As described in the login(1) manpage, you can add the line
  1696.   'syslog=all' to /etc/config/login.options to log all login attempts,
  1697.   not just successful ones, in /usr/adm/SYSLOG.
  1698.  
  1699. - 'ftpd', 'rshd' and 'tftpd' all have options ('-l' or '-L') which
  1700.   cause them to log all accesses. See their manpages. 'ftpd' also has
  1701.   '-ll' and '-lll' options (undocumented before IRIX 5.x) which log
  1702.   individual file transfers and the sizes of those files respectively.
  1703.   Add the options to the last fields (not the second-to-last) of the
  1704.   appropriate lines of /usr/etc/inetd.conf (/etc/inetd.conf in IRIX
  1705.   5.x), then do 'killall -HUP inetd' or reboot.
  1706.  
  1707. ------------------------------
  1708.  
  1709. Subject:   -16- I've just edited inetd.conf, and nothing changed. Why?
  1710. Date: 10 Dec 93 00:00:01 CST
  1711.  
  1712. You need to make 'inetd' reread the file. Do 'killall -HUP inetd' or
  1713. reboot.
  1714.  
  1715. ------------------------------
  1716.  
  1717. Subject:   -17- How do I make an anonymous or restricted FTP account?
  1718. Date: 10 Dec 93 00:00:01 EST
  1719.  
  1720. Read the ftpd(1M) manpage. Be especially sure that the home directory
  1721. (/usr/people/ftp) is owned and writable only by root, NOT ftp.
  1722.  
  1723. ------------------------------
  1724.  
  1725. Subject:   -18- How do I set the number of processes allowed on my
  1726.                 machine?
  1727. Date: 23 Jan 94 00:00:01 CST
  1728.  
  1729. Change NPROC in usr/sysgen/master.d/kernel, run '/etc/autoconfig -f'
  1730. and reboot. In IRIX 5.x, use 'systune'.
  1731.  
  1732. ------------------------------
  1733.  
  1734. Subject:   -19- I want to install a termcap for 'iris-ansi-net' on my
  1735.                 non-SGI system, but I can't find a termcap file on the
  1736.                 SGI.  Where can I get one?
  1737. Date: 20 May 93 00:00:01 CST
  1738.  
  1739. SGIs use the system 5 style terminfo stuff.  What you want can be done
  1740. though.  See the infocmp(1) manpage and the documentation about -r.
  1741. This should do the job: 'infocmp -Cr iris-ansi'.
  1742.  
  1743. If you don't have infocmp, you have to install eoe2.sw.terminf, which
  1744. is not installed by default.
  1745.  
  1746. ------------------------------
  1747.  
  1748. Subject:   -20- My SGI crashed and generated a file,
  1749.                 /usr/adm/crash/vmcore.1. How can I examine this file to
  1750.                 see what crashed my system?
  1751. Date: 10 Dec 93 00:00:01 EST
  1752.  
  1753. For a start, you can use 'dbx' like so:
  1754.  
  1755.   dbx -k /usr/adm/crash/{unix,vmcore}.#
  1756.   t
  1757.   &putbuf/1000s
  1758.  
  1759. Some machines have a special 'dbx' for crash dumps,
  1760. /usr/adm/crash/dbx.  If it exists, use it instead of /usr/bin/dbx.
  1761.  
  1762. There is also a script, 'crpt', which does this and more
  1763. automagically.  One version lives at
  1764. viz.tamu.edu:/pub/sgi/software/crpt/, but ask the TAC when you call to
  1765. make sure you have the latest and greatest.
  1766.  
  1767. ------------------------------
  1768.  
  1769. Subject:   -21- How can I tell what hostname to use in /etc/exports?
  1770. Date: 07 Feb 94 00:00:01 EST
  1771.  
  1772. NFS servers may need a particular form of a client's name in
  1773. /etc/exports to allow the client access. This may not be obvious, for
  1774. example if the server is also a router. Log in from the client to the
  1775. server and say 'echo $REMOTEHOST' to see what the server thinks the
  1776. client is called, and put that in /etc/exports.
  1777.  
  1778. IRIX 5.2's System Manager ('chost') should be able to determine the
  1779. correct hostname for you.
  1780.  
  1781. ------------------------------
  1782.  
  1783. Subject:   -22- Why can't I export an NFS-mounted filesystem?
  1784. Date: 10 Dec 93 00:00:01 CST
  1785.  
  1786. This is known as multi-hop NFS. It is not allowed or supported in
  1787. (Sun's) NFS because it is not in general possible to detect errors such
  1788. as infinite mount loops, on either the client or the server.
  1789.  
  1790. ------------------------------
  1791.  
  1792. Subject:   -23- Why can't Ultrix automount SGI filesystems?
  1793. Date: 10 Dec 93 00:00:01 CST
  1794.  
  1795. Ultrix's automount uses an "untrusted" port for mount requests. Add
  1796. an '-n' to the mountd lines in /usr/etc/inetd.conf (/etc/inetd.conf
  1797. in IRIX 5.x), like so:
  1798.  
  1799. mountd/1    stream  rpc/tcp wait    root    /usr/etc/rpc.mountd     mountd -n
  1800. mountd/1    dgram   rpc/udp wait    root    /usr/etc/rpc.mountd     mountd -n
  1801.  
  1802. then 'killall mountd' and 'killall -HUP inetd' or reboot.
  1803.  
  1804. ------------------------------
  1805.  
  1806. Subject: + -24- Why does 'tar' work strangely on a filesystem mounted
  1807.                 from an SGI?
  1808. Date: 03 Apr 94 00:00:01 EST
  1809.  
  1810. When user A extracts a file owned by user B from a tar archive, 'tar'
  1811. makes the file owned by user A unless user A is the superuser.  Some
  1812. systems allow users to give files away (e.g. IRIX); some do not (e.g.
  1813. SunOS).  On some systems with the restricted behavior (SunOS among
  1814. them), 'tar' tries to give the file to user B whether or not user A is
  1815. the superuser, assuming that the chown system call will fail if user A
  1816. is not. This is not true if user A is using 'tar' on (e.g.) a Sun to
  1817. extract files onto a filesystem NFS-mounted from (e.g.) an SGI. 'tar'
  1818. may create zero-length files or give away directories and then be
  1819. unable to extract files into them.
  1820.  
  1821. Work around the problem by doing the 'tar' on the SGI or extracting
  1822. onto a Sun filesystem. It is possible that third-party versions of
  1823. 'tar' (e.g. GNU tar) are smarter; let us know if so. Don't turn the
  1824. restricted_chown kernel variable on on the SGI; while this will fix the
  1825. problem at hand, it will break SGI programs which need to give files
  1826. away without running as root (notably /bin/mail).
  1827.  
  1828. ------------------------------
  1829.  
  1830. Subject:   -25- Is 'pcnfsd' available for the SGI?
  1831. Date: 27 Feb 94 00:00:01 EST
  1832.  
  1833. For IRIX 4.0.x, look in ftp.sgi.com:/support/pcnfsd.sysV/. (Note that
  1834. although SGI makes this available, they do not support it.) For IRIX 5.x,
  1835. look in viz.tamu.edu:/pub/sgi/software/pcnfsd/.
  1836.  
  1837. ------------------------------
  1838.  
  1839. Subject:   -26- Can I export a CD-ROM from my SGI to a non-SGI?
  1840. Date: 10 Dec 93 00:00:01 EST
  1841.  
  1842. Not in IRIX 4.0.x. You can in IRIX 5.x, as you would any other
  1843. filesystem.
  1844.  
  1845. ------------------------------
  1846.  
  1847. Subject:   -27- Why can't I export an ISO 9660 CD-ROM using NFS?
  1848. Date: 20 Feb 94 00:00:01 EST
  1849.  
  1850. You can, but only to another SGI (see the previous question) and
  1851. there's a catch. Add the CD-ROM filesystem to /etc/exports and export
  1852. it with 'exportfs' *before* you mount the CD-ROM.  This chicanery is
  1853. not necessary in IRIX 5.x. For more detail, read
  1854. viz.tamu.edu:/pub/sgi/hardware/exporting-iso-9660-cdrom or the article
  1855. in the Jan/Feb 93 Pipeline, or for an up-to-date copy call the TAC and
  1856. ask for SGI's writeup on "Mounting an ISO 9660 CD Across NFS".
  1857.  
  1858. ------------------------------
  1859.  
  1860. Subject:   -28- How can I read an IRIX (EFS) CD-ROM on a machine which
  1861.                 doesn't use EFS?
  1862. Date: 09 Jan 94 00:00:01 EST
  1863.  
  1864. You want 'efslook', in viz.tamu.edu:/pub/sgi/software/efslook/.
  1865.  
  1866. ------------------------------
  1867.  
  1868. Subject:   -29- Why is my network license daemon ('netlsd') exiting?
  1869. Date: 20 May 93 00:00:01 CST
  1870.  
  1871. For netlsd to run, you need to have 'llbd' and 'glbd' installed and
  1872. running.  A complete debugging procedure is in the netls release notes,
  1873. which can be read with 'relnotes netls_eoe 5'.
  1874.  
  1875. ------------------------------
  1876.  
  1877. Subject:   -30- Why isn't /usr/adm/SYSLOG being updated?
  1878. Date: 05 Jul 93 00:00:01 CST
  1879.  
  1880. Thanks to Vernon Schryver <vjs@rhyolite.wpd.sgi.com> here.
  1881.  
  1882. Popular causes include:
  1883.  
  1884. - running out of disk space.
  1885.   Once syslogd is unable to write to /usr/adm/SYSLOG, it won't try
  1886.   again until it is `killall -HUP syslogd`.
  1887.  
  1888. - installing IRIX 4.0.X and failing to heed the nagging from
  1889.   the system when it is rebooted to run 'versions changed' and combine
  1890.   new and old configuration files.  In this case, the trouble is in
  1891.   /usr/spool/cron/crontabs/root.
  1892.  
  1893. ------------------------------
  1894.  
  1895. Subject:   -31- Why is 'rusers' showing users who aren't really logged
  1896.                 in?
  1897. Date: 30 Dec 93 00:00:01 CST
  1898.  
  1899. This is a well-known bug in IRIX 4.0.X wherein /etc/utmp is not being
  1900. updated properly after a user logout.  'rusers' (and other programs)
  1901. are simply reporting the non-updated contents of /etc/utmp.
  1902.  
  1903. Fixes have been provided by jer@blaise.cif.rochester.edu, David Hinds
  1904. <dhinds@allegro.stanford.edu> and Patrick M. Ryan <pat@gsfc.nasa.gov>.
  1905. They can be found at viz.tamu.edu:/pub/sgi/software/utmp/.
  1906.  
  1907. ------------------------------
  1908.  
  1909. Subject:   -32- How do I make a bootable tape from an IRIX 4.0.X CD?
  1910. Date: 20 Feb 94 00:00:01 EST
  1911.  
  1912. See the Sep/Oct 93 Pipeline for a detailed description, or just follow
  1913. Dave Olson <olson@sgi.com>'s summary: Take a look at the distcp(1M)
  1914. manpage, and do something like
  1915.  
  1916.     tapehost# mount -o ro cdhost:/CDROM /mnt
  1917.     tapehost# distcp /mnt/dist /dev/nrtape
  1918.  
  1919. Note that 'fx', 'ide', and 'sash' for all machines are in the dist/sa
  1920. file.  'sa' is an image of the first part of the tape; use 'mkbootape
  1921. -f sa -l' to see the contents.
  1922.  
  1923. ------------------------------
  1924.  
  1925. Subject: ! -33- Why can't I boot one of the stand-alone programs on a
  1926.                 tape or CD?
  1927. Date: 03 Apr 94 00:00:01 EST
  1928.  
  1929. One reason is that some CPU names are preceded by periods and some
  1930. aren't. Another is that the Indigo R4000 and later CPUs use the suffix
  1931. 'ARCS', not 'IP20' or whatever as one might expect from 'hinv'. For
  1932. example, the correct command to boot fx directly from the PROM monitor
  1933. on an Indigo R4000 is 'boot -f dksc(ctlr,unit,8)sashARCS
  1934. dksc(ctlr,unit,7)stand/fx.ARCS'. Note the use of 'ARCS' instead of
  1935. 'IP20' and the missing period in 'sashARCS'.
  1936.  
  1937. ------------------------------
  1938.  
  1939. Subject:   -34- Why is /debug or /proc full of huge files?
  1940. Date: 10 Dec 93 00:00:01 EST
  1941.  
  1942. Those aren't disk files, they're interfaces to running processes.  Read
  1943. the debug(4) and/or proc(4) manpages.
  1944.  
  1945. ------------------------------
  1946.  
  1947. Subject:   -35- Why do some programs parse /etc/fstab incorrectly?
  1948. Date: 10 Dec 93 00:00:01 EST
  1949.  
  1950. In IRIX 4.0.5, some programs (e.g. 'fsr') misinterpret lines in
  1951. /etc/fstab, so that, e.g.,
  1952.  
  1953.   /dev/usr /usr efs rw,raw=/dev/rusr,quota 0 0
  1954.  
  1955. would cause 'fsr' to think that the raw device pathname was
  1956. "/dev/rusr,quota" instead of "/dev/rusr". There is no such device, so
  1957. /dev/rusr would never be defragmented. You can work around this by
  1958. putting the "raw" option last:
  1959.  
  1960.   /dev/usr /usr efs rw,quota,raw=/dev/rusr 0 0
  1961.  
  1962. This is fixed in IRIX 5.x.
  1963.  
  1964. ------------------------------
  1965.  
  1966. Subject:   -36- My Indigo's Ethernet performance is dog-slow. What
  1967.                 gives?
  1968. Date: 10 Dec 93 00:00:01 EST
  1969.  
  1970. Call the TAC. You need the "E++" patch, or IRIX 4.0.5IOP ("Indigo Only
  1971. Patch"), which includes the E++ patch.
  1972.  
  1973. ------------------------------
  1974.  
  1975. Subject:   -37- My Indigo running 4.0.5IOP is getting SIGSEGVs and
  1976.                 crashing. What gives?
  1977. Date: 12 Jan 94 00:00:01 EST
  1978.  
  1979. Make sure you've installed the 4.0.5IOP NFS maintenance patch along
  1980. with the rest of 4.0.5IOP. If you're sure you have, call the TAC.
  1981. You may need the "IP20 ethernet patch".  This comes *after* 4.0.5IOP,
  1982. and is not to be confused with the older "E++ patch" (see the previous
  1983. question).
  1984.  
  1985. ------------------------------
  1986.  
  1987. Subject:   -38- Why is my Indigo2 panicking?
  1988. Date: 10 Jan 94 00:00:01 EST
  1989.  
  1990. There are several keyboard-related bugs in IRIX 4.0.5H and 4.0.5IOP
  1991. which cause Indigo2s to crash or freeze. One sign that these particular
  1992. bugs are responsible is the message "PANIC: Timeout Table Overflow" or
  1993. "WARNING: Couldn't allocate streams buffer" in /usr/adm/SYSLOG.  They
  1994. will be fixed in IRIX 5.2, and in the meantime you can get the "Indigo2
  1995. keyboard patch" (aka "pckm patch") from SGI.
  1996.  
  1997. ------------------------------
  1998.  
  1999. Subject:   -39- What's this 'iotim' error in my syslog?
  2000. Date: 12 Feb 94 00:00:01 EST
  2001.  
  2002. It's a bug in 'rpc.rstatd' which affects several programs including
  2003. 'ruptime' and 'sysmeter'. In IRIX 4.0.5H and later, 'rpc.rstatd'
  2004. ignores the problem (returning all but the SCSI disk stats which cause
  2005. the error) but still generates a message.  The problem is completely
  2006. fixed in IRIX 5.x.  The pre-4.0.5H 'rpc.rstatd' says
  2007.  
  2008.   rstatd[4840]: read: iotim: No such device or address
  2009.  
  2010. and the post-4.0.5H 'rpc.rstatd' says
  2011.  
  2012.   rstatd[4941]: read: bad iotim, no disk stats: No such device or address
  2013.  
  2014. If you see the former, get the patched 'rpc.rstatd' from
  2015. ftp.sgi.com:/support/rpc.rstatd or (for Indigos) upgrade to IRIX
  2016. 4.0.5IOP. If you see the latter, relax and wait for IRIX 5.x.
  2017.  
  2018. ------------------------------
  2019.  
  2020. Subject:   -40- Why can't 'lp' read my file?
  2021. Date: 10 Dec 93 00:00:01 EST
  2022.  
  2023. 'lp' is setuid, so it can only read world-readable files. You can say
  2024. 'lp < file' if you don't want to make your file world-readable.
  2025.  
  2026. ------------------------------
  2027.  
  2028. Subject:   -41- How can I use 'lpr' to print to my local printer?
  2029. Date: 10 Dec 93 00:00:01 EST
  2030.  
  2031. SGI provides 'lpr' for printing on remote printers, and does not
  2032. support it for local printing. One way to do it anyhow is to make an
  2033. /etc/printcap entry with an output filter which is just a wrapper
  2034. around 'lp'. If that isn't crystal-clear, call the TAC and ask for
  2035. their "faxable" on "Integrating The AT&T Spooler With The BSD LPR Print
  2036. Spooler". A not-guaranteed-to-be-up-to-date copy is at
  2037. viz.tamu.edu:/pub/sgi/software/lp-lpr/lpr-to-lp.
  2038.  
  2039. ------------------------------
  2040.  
  2041. Subject:   -42- How can I use 'lp' to print to an 'lpr'-controlled
  2042.                 printer?
  2043. Date: 10 Dec 93 00:00:01 EST
  2044.  
  2045. Two possible ways:
  2046.  
  2047. - Write an 'lp' interface script that calls 'lpr'. Impressario 1.1 can
  2048.   do this for you. If you don't have Impressario you can do it yourself
  2049.   or call SGI and ask for their writeup, "LPTOLPR, A Model File for
  2050.   LP", which includes (in fact, consists of) just such an interface
  2051.   script. A not-guaranteed-to-be-up-to-date copy is at
  2052.   viz.tamu.edu:/pub/sgi/software/lp-lpr/lp-to-lpr.
  2053.  
  2054. - Write an 'lp' replacement script that calls 'lpr'. One such script
  2055.   is at viz.tamu.edu:/pub/sgi/software/lp-lpr/lp-wrapper-for-lpr.
  2056.  
  2057. ------------------------------
  2058.  
  2059. Subject:   -43- How can I tell 'lp' to turn banner printing or page
  2060.                 reversal off or on?
  2061. Date: 08 Jan 94 00:00:01 CST
  2062.  
  2063. 'lp' controls printers via shell scripts, called 'models', which live
  2064. in /usr/spool/lp/model. When you install a printer, the appropriate
  2065. model script is copied to /usr/spool/lp/interface/<name-of-printer>.
  2066.  
  2067. To temporarily change a printer's behavior, look at the manpage for its
  2068. interface script (or, if there is none, the script itself) to see what
  2069. options it wants, and pass them to the script with 'lp's '-o' option.
  2070. For example, 'lp -o"-nobanner" file' tells a "Generic Postscript"
  2071. printer (described in the gpsinterface(1) manpage) to print 'file'
  2072. without a banner page.
  2073.  
  2074. To permanently change a printer's behavior, edit its interface script.
  2075. The following are true for "Generic Postscript" printers, but the idea
  2076. is the same for others:
  2077.  
  2078. - To turn banner printing off or on, change the line 'BANNER=1' to
  2079.   'BANNER=0' or vice versa.
  2080.  
  2081. - To turn page reversal off or on, change the line
  2082.   'send=/usr/lib/print/lptops' to 'send="/usr/lib/print/lptops -U"'
  2083.   (note the quotes) or vice versa.
  2084.  
  2085. ------------------------------
  2086.  
  2087. Subject:   -44- Why can't I 'rdist' files between Suns and SGIs?
  2088. Date: 10 Dec 93 00:00:01 EST
  2089.  
  2090. Sun's 'rdist' expects SGI's 'rdist' to live in /usr/ucb, but it's
  2091. actually in /usr/bsd. Make a symbolic link from /usr/ucb/rdist to
  2092. /usr/bsd/rdist and all will be well.
  2093.  
  2094. ------------------------------
  2095.  
  2096. Subject:   -45- How do I add a static route?
  2097. Date: 10 Mar 94 00:00:01 EST
  2098.  
  2099. Some sites handle IP routing by designating a routing machine and
  2100. having all other hosts define a static route to that machine. The way
  2101. to do this on SGIs is in the /etc/init.d/network.local script.
  2102.  
  2103. 1) Read the paragraph just before the copyright at the top of
  2104.    /etc/init.d/network and make the links it specifies.
  2105.  
  2106. 2) Put something like the following in /etc/init.d/network.local,
  2107.    replacing ROUTER'S.IP.ADDRESS.HERE with the address of your router.
  2108.  
  2109.   #! /bin/sh
  2110.   case "$1" in
  2111.   'start')
  2112.       /usr/etc/route add default ROUTER'S.IP.ADDRESS.HERE 1 ;;
  2113.   'stop')
  2114.       /usr/etc/route delete default ROUTER'S.IP.ADDRESS.HERE ;;
  2115.   *)
  2116.       echo "Usage: $0 {start|stop}" ;;
  2117.   esac
  2118.  
  2119. If you NFS-mount disks from the other side of the static route, they
  2120. will not be unmounted properly during shutdown. You can fix this by
  2121. making the links so that /etc/init.d/network.local runs before
  2122. /etc/init.d/network: 'ln -s /etc/init.d/network.local
  2123. /etc/rc0.d/K41network' instead of '/etc/rc0.d/K39network'.
  2124.  
  2125. ------------------------------
  2126.  
  2127. Subject:   -46- How can I make the 'slip' command advertise the Ethernet
  2128.                 address of the SLIP client?
  2129. Date: 10 Dec 93 00:00:01 EST
  2130.  
  2131. You can't. Just add something like
  2132.  
  2133.   /usr/etc/arp -s $USER `netstat -ia | grep :` pub
  2134.  
  2135. to the shell script in which you start the SLIP process. $USER is the
  2136. SLIP client. The 'netstat | grep' part gets the host's Ethernet
  2137. address, and 'arp' advertises the host as an ARP server for $USER. See
  2138. also the arp(1M) manpage.
  2139.  
  2140. ------------------------------
  2141.  
  2142. Subject:   -47- How can I set up 'sendmail' to pass 8-bit characters?
  2143. Date: 12 Feb 94 00:00:01 EST
  2144.  
  2145. Dunno, offhand, but many experts say "don't try". RFC822 requires mail
  2146. transport agents to *clear* the eighth bit, and many hosts do. Some
  2147. which don't may crash when they get mail with the eighth bit set.
  2148. Instead, use a MIME-compatible mail program. MIME, described in
  2149. RFC1521, is a standard for enclosing non- RFC822 material in your
  2150. mail.  The apps FAQ discusses several mail programs which support it.
  2151.  
  2152. Nonetheless, if someone wants to tell us about putting SGI's 'sendmail'
  2153. into 8-bit mode we'll note it here.
  2154.  
  2155. ------------------------------
  2156.  
  2157. Subject:   -48- Why are my mailbox files changing ownership?
  2158. Date: 17 Jan 94 00:00:01 CST
  2159.  
  2160. If your mail directory is mounted from another machine, your machine
  2161. does not have root access, and the other machine has BSD-style
  2162. "restricted chown" (either because it's not an SGI or because someone
  2163. turned restricted chown on), /bin/mail will change mail file ownership
  2164. when delivering local mail. Without unrestricted chown or root access,
  2165. /bin/mail is unable to give mail files back to their owners after
  2166. delivering mail. You can fix the problem by turning off restricted
  2167. chown on the other machine (if it's an SGI), exporting the mail
  2168. directory with root access for your machine, or waiting for IRIX 5.2,
  2169. in which the problem will be fixed.
  2170.  
  2171. ------------------------------
  2172.  
  2173. Subject:   -49- Why isn't a valid user getting their mail?
  2174. Date: 24 Jan 94 00:00:01 EST
  2175.  
  2176. IRIX' mail system requires "valid users" to have both valid password
  2177. file entries (whether local or via NIS) and home directories. The
  2178. latter often trips one up when installing POP servers and whatnot,
  2179. where home directories aren't really necessary. Just make a fake one.
  2180.  
  2181. ------------------------------
  2182.  
  2183. Subject:   -50- How can SGIs and Suns share a mail spool?
  2184. Date: 05 Feb 94 00:00:01 EST
  2185.  
  2186. Paul Riddle <paulr@umbc.edu> has written up how he did it. Read
  2187. ftp.umbc.edu:/pub/sgi/shared-spool.text.
  2188.  
  2189. ------------------------------
  2190.  
  2191. Subject:   -51- What's an "unknown mailer error"?
  2192. Date: 20 Feb 94 00:00:01 EST
  2193.  
  2194. There's a list in viz.tamu.edu:/pub/sgi/software/mail/mail-errors.
  2195.  
  2196. ------------------------------
  2197.  
  2198. Subject:   -52- What's "mailbox: Error 0"?
  2199. Date: 05 Mar 94 00:00:01 EST
  2200.  
  2201. It's a harmless bug; don't worry about it. It is present in IRIX 4.0.x
  2202. before 4.0.5H/4.0.5IOP and fixed in those and later versions.
  2203.  
  2204. ------------------------------
  2205.  
  2206. Subject:   -53- Can I change my full name or login shell without being
  2207.                 superuser?
  2208. Date: 16 Mar 94 00:00:01 EST
  2209.  
  2210. Maybe. IRIX 4.x has no 'chfn' or 'chsh', so if you're a local user
  2211. you're stuck. However, if your account is on NIS (Yellow Pages) you can
  2212. use 'ypchpass'. You might also ask your superuser to install one of the
  2213. many free implementations of 'chfn' and/or 'chsh'; one is in volume 3 of
  2214. comp.sources.unix (ftp.uu.net:/usenet/comp.sources.unix/volume3/).
  2215.  
  2216. ------------------------------
  2217.  
  2218. Subject:   -54- How do I extend an existing filesystem onto a new disk?
  2219. Date: 24 Jan 94 00:00:01 EST
  2220.  
  2221. Back up the existing filesystem (just in case) then run 'mklv' and
  2222. 'growfs'. 'mklv' and 'growfs' are nondestructive, so you don't need to
  2223. restore the backup unless you screw up. Don't use 'mkfs', which does
  2224. destroy existing data.
  2225.  
  2226. ------------------------------
  2227.  
  2228. Subject:   -55- How can I measure my network's reliability?
  2229. Date: 13 Feb 94 00:00:01 EST
  2230.  
  2231. Don't worry about collisions. They are part of normal operation on a
  2232. crowded Ethernet. You *should* worry about late collisions (which are
  2233. logged to the console) and lost packets (which you can easily measure
  2234. with the command 'ping -fs 3000 -c 1000 someotherhost'), which usually
  2235. mean network hardware problems or a misconfigured bridge or router.
  2236.  
  2237. ------------------------------
  2238.  
  2239. Subject:   -56- How do I know if I need more memory and/or swap space?
  2240. Date: 20 Feb 94 00:00:01 EST
  2241.  
  2242. If processes are killed due to lack of memory/swap, you need more
  2243. memory and/or swap space. If your CPU is always waiting for swapping
  2244. (run 'osview' and look at the "%Swap" entry under "Wait Ratio") you
  2245. need more memory.
  2246.  
  2247. ------------------------------
  2248.  
  2249. Subject:   -57- How much swap space should I have per megabyte of
  2250.                 memory?
  2251. Date: 20 Feb 94 00:00:01 EST
  2252.  
  2253. An oft-recommended ratio is X memory:2.5 X swap, but this may be too
  2254. slow. Decide how much of your favorite program (plus IRIX) needs to be
  2255. resident for good performance and how much doesn't, and make sure you
  2256. have enough memory for the former and enough memory plus swap for the
  2257. latter. Put "rmem" and "swp" in your ~/.grosview file, run 'gr_osview'
  2258. and run your favorite program to see what it needs.
  2259.  
  2260. ------------------------------
  2261.  
  2262. Subject:   -58- How can I increase my swap space?
  2263. Date: 20 Feb 94 00:00:01 EST
  2264.  
  2265. See the Jan/Feb 93 Pipeline for a detailed writeup, or call the TAC and
  2266. have them fax you the very latest version. It will be much easier in
  2267. IRIX 5.x, which will support swapping to files.
  2268.  
  2269. ------------------------------
  2270.  
  2271. End of sgi/faq/admin Digest
  2272. ******************************
  2273. -- 
  2274. The SGI FAQ group                                sgi-faq@viz.tamu.edu
  2275. Finger us for info on the SGI FAQs, or look in viz.tamu.edu:/pub/sgi.
  2276.